The U.S. economy grew more slowly in the spring, and many economists think the slowdown will continue and perhaps complicate President Donald Trump’s hopes that a surging economy enhances his 2020 reelection hopes.

The gross domestic product, the broadest gauge of economic health, advanced at a moderate 2% annual rate in the April-June quarter, down from a 3.1% gain in the first quarter, the government said Thursday. The figure was lower than the government’s initial estimate a month ago of 2.1% annual growth.

Still, even though the economy is slowing, one encouraging sign is that consumer spending, which drives about 70% of growth, accelerated last quarter at the fastest pace in nearly five years. At the same time, business investment, which has weakened in the face of Trump’s trade wars, was revised lower and subtracted from growth in the April-June period.

Trump is counting on rising wages and low unemployment to keep consumers spending. The president has pledged to achieve GDP growth at annual rates of 3% or better. But economists generally foresee GDP slowing sharply after hitting 2.9% last year. The expectation is that annual growth in the current July-September quarter is slowing to around 1.8% and that the pace in the October-December quarter will be similar.

For all of 2019, economists estimate that GDP will slow to around 2.2% and then drop to below 2% in 2020 as the economy faces headwinds from the global slowdown and the uncertainties generated by Trump’s escalating trade war with China.

The biggest factor in the government’s downward revision for the April-June quarter was a smaller gain in spending by state and local governments and fewer export sales. American exports have been hurt by the retaliatory tariffs China and other countries have imposed on U.S. soybeans and other products. That drop was offset by the increase in consumer spending to a rate of 4.7%, up from an initial estimate of 4.3%.

Business investment spending turned negative in the second quarter, falling at a 0.6% annual rate, which many economists believe occurred because of the trade wars increasing business uncertainty about the future.

A slowdown in annual growth to 2.2% would be near the 2.3% annual gains seen since the decade-long expansion began in June 2009. The recovery became the longest in U.S. history last month but analysts have begun to worry whether trade wars, plunging stock markets and such factors as an inverted yield curve might be signaling growing risks of a recession.

That would be a setback for the president, who is counting on a robust economy to support his 2020 re-election bid. Trump contends that his economic program of tax cuts, deregulation and get-tough trade policies will give the country sustained GDP growth of 3% a year or better, a big improvement on the 2.3% gains of the Obama years.

However, private economists disagree. They believe that growth accelerated last year because of the tax cuts but that this boost is now fading. They are forecasting growth will slow even further next year and they say a recession can’t be ruled out. In fact, a survey last week found that 74% of business economists now believe a new recession will begin by the end of 2021 with 38% saying the downturn will start even sooner, in 2020.

Mark Zandi, chief economist at Moody’s Analytics, said he is not forecasting a recession in the next 18 months but he said one can’t be ruled out with the greatest risk coming from Trump’s trade war with China.

“If the president continues to ratchet up the rhetoric and his tariffs on China, it will continue to unnerve businesse people who are already being more cautious with their investment plans,” Zandi said. “The risks of going into a recession are high if the president keeps escalating his trade war.”

In a separate report Thursday, the Labor Department said that the number of Americans filing claims for unemployment benefits, seen as a good proxy for layoffs, rose by 4,000 last week to a still-low 215,000. Economists believe this weekly indicator will be one of the first signs if the economy is starting to falter.

© The Associated Press. All rights reserved.