Both the S&P 500 and the Nasdaq Composite hit all-time intrady highs on Thursday, but stocks later reversed and all three major U.S. indexed closed lower.