A majority of Democrats on Tuesday voted against rejecting an effort to impeach President Trump, bucking their leadership ahead of the midterms.