The US economy is losing momentum heading into the back half of the year, highlighted by the government’s latest report card that showed weaker consumer spending and declines in business and residential investment.