The numbers: Confident consumers kept the U.S. economy plugging along in the third quarter, spending more than enough to counter a big drop in business investment tied to falling oil prices and the ongoing trade war with China.

Gross domestic product, the official scorecard for the economy, grew at an 1.9% annual pace in the third quarter, the government said Wednesday.That’s down just a tick from 2% growth in the spring.

Wall Street had braced for an even steeper decline. Economists polled by MarketWatch had forecast GDP to taper to 1.6%.

Read:Weak unions, globalization not to blame for shrinking slice of income pie for workers

What happened: Consumers keep doing their part to extend the longest economic expansion in American history that’s now more than 10 years old.

Although consumer spending didn’t match the second quarter’s heady 4.6% increase, outlays still rose a very healthy 2.9%. Consumer spending accounts for about 70% of all U.S. economic activity.

Americans spent more on new autos, food, health care and housing.

Read:Consumer sentiment shows Americans still fairly optimistic

The housing industry also contributed to the economy’s growth for the first time in nearly two years. Residential investment climbed 5.1%. Tumbling mortgage rates have drummed up more demand and spurred builders to boost construction.

Businesses were not so confident. The festering trade war with China has disrupted supply lines, raised raw material costs, hurt exports and made companies hesitant to spend. Falling oil prices also sapped the energy industry.

Investment in structures such as drilling rigs sank more than 15% in the third quarter, marking the biggest decline in almost four years. Spending on equipment such as computers and aircraft also fell a sharp 3.8%.

Yet somewhat surprisingly, businesses kept inventory levels fairly high. The change in inventories slipped to just $69 billion from $69.4 billion in the spring. Wall Street had expected a much bigger decline.

Government spending, meanwhile, increased just 2% during the summer after an outsized 4.8% advance in the second quarter.

International trade was another small drag. Exports rose 0.7% to partly rebound from a big drop in the second quarter, but imports rose somewhat faster at 1.2%.

Inflation pressures receded in the third quarter. The Federal Reserve’s preferred PCE inflation barometer rose just 1.5%, down from a 2.4% clip in the spring.

The low level of inflation gives the Fed leeway to cut interest rates further. The central bank is widely expected to cut a key interest rate again later Wednesday.

Big picture: GDP is the official measuring stick of the U.S. economy — and what it shows is steady if unspectacular growth. And little hint of recession.

While tensions over international trade policy have unnerved businesses, consumers have mostly shrugged it off. Rising incomes, the ease of finding work and the lowest unemployment rate in 50 years have given consumers plenty of confidence to go about their lives and keep the economy moving along.

The big question is, chief economist Richard Moody of Regions Financial said, is how much longer can consumer spending offset “sour business sentiment.”

The U.S. and Chinese governments have sought to ease the anxiety by returning to the bargaining table. The new round of talks this month has helped to push stocks to record highs.

Still, businesses are likely to continue to be hesitant to spend and invest until they get more clarity on the outcome of U.S.-China trade talks. Economists predict GDP will grow about 2% in the fourth quarter as well.

What they are saying? Better than expected third-quarter growth “ should help assuage fears that the economy is on the cusp of tumbling into recession, though I doubt the pessimists will give up that easily,” said Stephen Stanley, chief economist at Amherst Pierpont Securities.

“A not-so spooky GDP report showed that consumer spending remained buoyant offsetting the ongoing business investment slump,” chief U.S. economist Gregory Daco of Oxford Economics wrote to clients. “However, with the U.S. economy no longer fiscally insulated and businesses feeling the pinch from squeezed profit margins, economic momentum is poised to slow into 2020.”

Market reaction: The Dow Jones Industrial Average DJIA, +1.33% and S&P 500 SPX, +1.59% fell slightly in Wednesday trades. The S&P set an all-time high earlier this week.