Consumer spending helped drive growth despite cost-of-living expenses that have spiked across the country.