The S&P 500 extended its winning streak to nine weeks.