The S&P 500 and Nasdaq closed slightly lower on Thursday after a Federal Reserve statement, and energy stocks were the biggest drag on the S&P as U.S. crude oil prices fell.