From Amazon to McDonald’s, strong earnings show U.S. consumer resilience