U.S. stocks rally after S&P 500’s worst week in over 2 years