It has a whole lot to do with MAGA and keeping a slew of his more conservative elected followers and support base, who loudly decry any US involvement in foreign conflicts, onside. A misstep in the next two weeks could shatter those rather thin house majorities, just in time for the mid-term 'bloodbath' and the inevitable, final two years of a lame duck presidency.
Netanyahu's questionable decision to attack Iran came within hours of his fragile, right-wing coalition government narrowly defeating a no-confidence vote. The suggestion has been made that committing to attack Iran was a condition of securing critical, last-minute life-support for his government.
I think Putin, Xi and Kim are the only despots who can do what they want with impunity. The tin pot dictatorships in Europe, Asia, Africa and Latin America aren't in the same league.