U.S. economic growth has defied forecasts, even with elevated interest rates, trade disruptions, and a cooling labor market.