U.S. economic growth cooled last quarter as consumers pulled back following outsize spending in the prior period, though solid business investment cushioned some of the weakness.