Stocks moved higher as investors looked past acceleratinginflation and the Fed’s pivot on monetary policy.