S&P 500 headed for its worst week in more than two months