The reading on gross domestic product was bolstered by consumer spending, showing that recession forecasts early in the year were premature, at least.