S&P 500 reports best September in 15 years as investors shrug off shutdown worries