Whether Democrats would move to impeach President Donald Trump weighed heavily on the market on Wednesday.