The stock market plunged on Wednesday, with both the Dow Jones Industrial Average and S&P 500 closing in negative territory for the year.