The stakes are high for Trump’s Republican party, which risks losing control of both chambers of Congress, polls show.