As the war in Iran stretches on, it is inflaming an intraparty rift with ramifications for the midterms and the run-up to 2028.