(Reuters) - The S&P 500 and Dow industrials slipped on Thursday, weighed by energy shares, but gains in Costco and tech shares lifted the Nasdaq Composite.