Trump and Netanyahu’s once mutually beneficial alliance became a political liability, as their hard-line approach to Iran alienated voters and undermined both leaders.