>
the US at least attempted to invent a casus belli for IraqAgain: reward your friends, punish your enemies.
Lie ("invent a casus belli") if you have to in order to punish your enemies.
Everyone here trying to give some ideological reason why we did such and such in this case, but not in this other case, is entirely mistaken. Literally everything is spin to justify the core motivation: reward your friends, punish your enemies.
Ukraine is no different. We can invade Iraq because they are our enemy. Russia CANNOT invade Ukraine because they are our friend.
----
Answering your follow up here (I'm rate-limited):
> What was different about the 2014 invasion if it is strictly realpolitik friends and enemies?
As I understand things, Crimea is literally the friend/enemy distinction in action (Russian perspective):
Crimea, arguably (and certainly, effectively) was/is a Russian territory, autonomous (but pro-Russian) and with an active Russian naval base, that came under the nominal control of the West after the 2014 regime change (enemy); thus Russia militarily took it back (friend), ensuring its continued independence and pro-Russian stance.
Ukraine responded to Crimea's post-2014 autonomy/invasion/rescue/independence by cutting off their water supply, something Russia built for Crimea during the USSR. (I'm honestly surprised this step wasn't/isn't a Hague-level human rights violation. Maybe the Hague is also operating primarily under the friend/enemy distinction?)
More detail here: https://www.youtube.com/watch?v=If61baWF4GE (Why Russia is Invading Ukraine)