As Republicans face losing the midterms, Trump has concluded the Iran war would be partly to blame and trained his attention on the advisers who promised a quick and decisive fight.