...Also puts everyone in mortal danger.
In what way?
Iran doesn't have nukes, and it's friends who have nukes aren't really it's friends, they just - for the moment - have a common enemy, but neither Russia nor China is going to risk a nuclear exchange with the US for the sake of Iran.
Iran's ability to fight proxy wars has been impressive, but it's ability to fight a stand up war with the US is not far off non-existant.
Iran can doubtless respond with terrorism against US allies/proxies and issue dire threats, and it's allies may note their
grave concerns and make life for the US and it's proxies/allies difficult elsewhere in order to produce overstretch, but this not August 1914.
There are risks to be weighed up, but the US has imposed a significant defeat on the Iranians - the US is more willing to strike than they thought, the US has better intelligence than they thought, and the
architect and
executor of Iranian foreign and military policy, it's wars in Syria, Iraq and Lebanon,and the effective #2 in the Iranian state - as well as couple of locally important allies/proxies - is dead because the US wished it so.
This is similar in importance to the Germans killing Zhukov in 1943, or the US killing Giap in 1968. Not without risk, but a huge blow to to the effectiveness of their enemy.