The U.S. stock market rebounded Thursday from a two-day slump, notching its biggest gain in more than two weeks