James Blair, the president’s top political strategist, planned for a different midterm cycle. Then Trump attacked Iran.