Midterms often serve as a referendum on the president, with the president’s party typically losing seats in Congress.