The U.S. stock market closed higher Friday, with the S&P 500 eking out a weekly gain to snap four straight weeks of losses. The Dow Jones Industrial Average finished up 0.1%, while the S&P 500 rose 0.