Projections early Wednesday showed President Donald Trump’s Republicans losing their majorities in both chambers of Congress.