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