The economy’s trajectory in President Trump’s first year in office is looking a lot like it did during President Barack Obama’s last year in office.

The Commerce Department reported on Friday that the economy rebounded last quarter after a slow start to 2017, bringing the growth rate for the first half of the year to just under 2 percent. In 2016, the economy expanded at an annual rate of 1.5 percent.

The latest figures are a long way from the 4 percent pace Mr. Trump has promised, and they underscore how remarkably consistent, if hardly spectacular, the economy’s performance has been since the current recovery started eight years ago this summer.

“This is more of the same,” said Patrick Newport, an economist at IHS Markit. “We are doing better than just about any other developed Western economy, even though this doesn’t meet the standards we’re used to. We’re the leader of a slow-moving pack.”