The stock market recovered from a midday stumble and ended higher, staying on track for its first weekly gain in four weeks.
The S&P 500 rose 0.7 percent Thursday. The Nasdaq composite and the Dow Jones Industrial average also ended higher after bumpy rides of their own.





