WASHINGTON—Farmers took a big hit. Importers of auto parts, furniture and machinery choked down punishing tariffs. Investment between the world’s two largest economies dropped.

Much of the U.S. economy is largely unscathed by two turbulent years of trade war with China, economic indicators show. Yet economic growth is trending near 2% in 2019, well short of the Trump administration’s goal of 3%.

The...