U.S. stocks closed out the month and quarter on a sour note Thursday as investors shed equities and losses accelerated within the final hour of trading, continuing a trend of weakness on Wall Street that has played out over the past several weeks. The declines for stocks came even as Congress passed a bill extending government funding through Dec. 3, sending the legislation to President Joe Biden's desk hours before current funding expires and completing one of several pressing measures before lawmakers. The Dow Jones Industrial Avergae /zigman2/quotes/210598065/realtime DJIA +0.68% closed off 547 points, or 1.6%, to reach 33,843, the S&P 500 index /zigman2/quotes/210599714/realtime SPX +1.32% closed off 1.2% at 4,308, finishing down around 5% from its Sept. 2 peak. The Nasdaq Composite Index /zigman2/quotes/210598365/realtime COMP +1.88% ended 0.4% lower to around 14,449. For the month, the Dow closed down 4.3% for its worst monthly loss since October of 2020, the S&P 500 index closed down 4.8%, while the Nasdaq Composite finished September off 5.3%. For the quarter, the Dow booked a quarterly decline of 1.9%, the S&P 500 finished the quarter up 0.2%, while the Nasdaq Composite booked a quarterly loss of 0.4%. It was the first quarerly loss for the Dow and Nasdaq since March 2020, according to Dow Jones Market Data.