Updated

The stock market retreated from all-time highs Wednesday after the Federal Reserve said the U.S. economy still needed help from its stimulus program.

In its latest policy statement, the nation's central bank said it will continue its $85 billion a month bond-buying program and would keep its benchmark short-term interest rate near zero. The bond purchases are designed to keep borrowing costs low for consumers and businesses, thereby stimulating the economy.

The decision was mostly expected by investors. Since the Fed's last meeting in September, the economy suffered a blow because of the 16-day partial shutdown of the U.S. government and the near-breach of the nation's borrowing limit.

As a result, investors thought it would be highly unlikely the Fed would make any changes to its stimulus program until early next year, after there was more evidence that the U.S. could grow without the central bank's help.

The next time the Fed will revisit its bond-buying program will be at its mid-December meeting.

The Dow Jones industrial average was down 45 points, or 0.3 percent, to 15,643 as of 3 p.m. Eastern time. It was down about 30 points shortly before the Fed's announcement came out at 2 p.m.

The Standard & Poor's 500 index fell six points, or 0.4 percent, to 1,765. The Dow and S&P 500 closed at record highs Tuesday.

The Nasdaq composite fell 20 points, or 0.5 percent, to 3,931.

Bond prices also fell after the Fed's announcement. The yield on the benchmark U.S. 10-year Treasury note rose to 2.52 percent from 2.50 percent the day before.

Stocks of home construction companies fell after the Fed said in its policy statement that "the recovery in the housing sector slowed somewhat in recent months." Last month, the Fed said housing "has been strengthening."

KB Home fell 56 cents, or 3.2 percent, to $17.39. Luxury homebuilder Toll Brothers fell 76 cents, or 2.2 percent, to $33.36 and PulteGroup fell 32 cents, or 1.8 percent to $17.88.

Despite the decline Wednesday, October has been a big month for the stock market. With just two days of trading left, the S&P 500 is up 4.8 percent, putting the index on track for its best month since July.

Investors also had another dose of quarterly earnings to work through.

General Motors rose 99 cents or 3 percent, to $37.05. After taking out one-time effects, the nation's largest automaker earned $1.7 billion, or 96 cents per share, beat analysts' expectations of 94 cents per share.

Western Union plunged $2.48, or 13 percent, to $16.76. The money transfer company said late Wednesday that it may not see any profit growth in 2014 due to increasing regulation and compliance costs.

Starbucks, Visa and Facebook report their own quarterly results after the close of trading.