The S&P 500 fell 4% in September, its worst month since March 2020, as U.S. markets fell on the final day of trading in the month.