US STOCKS-S&P 500, Nasdaq end higher with energy; Dow down 6th day