U.S. stocks ended a volatile trading session slightly higher after Treasury yields retreated from multiyear highs and expectations for another rate hike this month subsided. The S&P 500 rose 0.19%, the Dow Jones Industrial Average ticked up 0.04%, and the Nasdaq also edged up 0.04%.