The Iran war has reshaped the rapidly approaching midterm elections.