Gross domestic product was expected to increase at a 2% annualized pace in the second quarter.

In the face of persistent calls for a recession, the economy showed surprising resilience despite a series of Federal Reserve interest rate increases that most Wall Street economists and even those at the central bank expect to cause a contraction.