The Iran war, gas prices and Trumpβs miscalculations led to one of the most decisive repudiations of an American president.