U.S. equities posted solid gains, with the S&P 500 coming off a seven-week losing streak and briefly dipping into bear market territory last Friday.