Invasion of Afghanistan only happened after diplomatic efforts to get the Taliban to surrender Bin Laden. Iraq invasion was pushed through UN. Likewise, the Balkan war in 1990s was UN-sanctioned.
This? I mean, never mind the question of nukes, I don't think anyone declared war. Iran is a buffet of pick-your-own-target, in the middle of a negotiation that was supposed to end the nuclear program peacefully. I'm not saying it because I like Iran (I don't) but because it sets the tone where countries just do what they want, if they can get away with it. It's a step back from a world, where at least in theory we were supposed to stay within the frameworks of principle-based laws.
You might argue that this was always a façade only, and the powerful did whatever they wanted, bending the law around it. Maybe. But I'd like to think it set a limit to how far they can bend it. Now? I'm not so sure.
Democracy doesn't really work when people think the US invaded Vietnam attacked they attacked us, that the US invaded Iraq because they have or are building WMD, that we invaded Libya to "liberate" it, and so on. And as for Iran, here's [2] a montage of Netanyahu claiming Iran will imminently have nuclear weapons, and so they should be invaded. The claims started 30 years ago and generally had a timeline of 1-3 years at most.
If the justifications for wars were more honest, even if that entails completely dropping the facade of morality, it'd have enabled populations within countries to have a better understanding of how the world "really" works, and also to make better decisions on the sorts of foreign policy views to support.
[1] - https://www.theguardian.com/world/2004/sep/16/iraq.iraq
I recommend this book:
https://www.amazon.com/United-Nations-History-Stanley-Meisle...
The UN isn't working very well right now, but it's worked considerably better in the past. In the wake of WW2, I think there was a genuine sentiment that war was really horrible and it should be avoided at all costs. Sadly most of the people who saw WW2 have passed away by this point.
In terms of populations "making better decisions on the sorts of foreign policy views to support" -- I think international law is, if anything, helpful in this regard. Foreign policy is complex, and human nature is such that people are always predisposed to see their own interests as just, or at least cloak their interests in the language of justice. On the other hand, total pacifism is also ideologically unworkable for various reasons. (Even most leftists are against "America First" style isolationism for WW2 or Ukraine.) So international law is valuable in the sense that, at least in principle, it helps you figure out who the bad guy is: Who is breaking international law? That may sound rather academic, but in practice it seems to carry more weight than you might expect.
To state my position another way: I think having some sort of international law is a good idea, even if the current scheme needs to be reworked. A better scheme might be: Have some ritualized, non-lethal way for nations to test strength against each other, e.g. through athletic competitions or wargames, as a binding method of resolving disagreements. This could be game-theoretically stable, if success at the "ritual test of strength" is thought to correlate strongly with real-world war performance. Furthermore, any state which initiates lethal, kinetic confrontation after losing the "ritual test of strength" (sore losers who refuse to abide by the outcome) should become international pariahs subject to secondary sanctions.
Well, Iran has been funding armies to the tune of millions (billions?) of dollars to attack Israel, as well as funding multiple terror attacks against Jews and against the US for many years.
So, alternative view - the fact that Iran has been allowed to do this, while the entire time stating quite clearly that they intend to destroy another sovereign country, while at the same time develop most of what they need for nukes - the fact that they've been allowed to do all this is actually proof that countries can do whatever they want and get away with it. And stopping their program is actually a way to show that countries can't just get away with it.
I'd love to see a UN resolution calling for the dismantling for this terrorist network. Or if not that, at least some kind of multilateral, or even hell, unilateral declaration on this - "end this or else". But no, it's a western style drive-by shooting. It just so happens the guy who got shot is a baddie.
Well, sort of. They tried, but when the UN gave an answer that the US and UK didn't like, they went ahead anyway.
> You might argue that this was always a façade only, and the powerful did whatever they wanted, bending the law around it.
I'm not quite cynical enough to wholly agree with that, but given enough motivation and power the façade does crack pretty easily.