The midterms, which will determine which party controls Congress, are seen as a referendum on Donald Trump’s presidency.