S&P 500 closed at a record after an expected rate cut from the Federal Reserve.