U.S. stock benchmarks edge higher for a third straight day Wednesday, with the Nasdaq Composite within striking distance of a 16th record close in 2021, as investors focus on inflation and the Federal Reserve’s promise to go slow in scaling back its support.