U.S. stocks rebounded Friday after a turbulent week for the S&P 500.