High-stakes midterm election doubles as referendum on president’s policies