U.S. stocks closed solidly higher and, in the process, snapped a three-week losing streak for the broad-based S&P 500 Index which had posted weekly declines in 10 out of last 11 weeks.