The Iran war loss cements the current president’s failed legacy