We (as the US) had a golden opportunity to reinvest our peace dividend after 1991 but we squandered it in a useless war for nearly 20 years after 9/11. But we have no choice but to reinvest in defense now.
In both cases, the democracies created are flawed, but certainly more democratic than what came before.
When the Soviet Union disintegrated, the Ukraine was left with the world’s 3rd largest nuclear weapons arsenal. They gave up every single one of them in exchange for a promise from the western world to help them defend themselves from aggression.
If we don’t live up to that promise, how can we ever hope to limit nuclear weapons proliferation anywhere else?
Perhaps Iraq wouldn't be a democracy, but our support of Ukraine would be more full-throated, and maybe our political circumstance would be better off.
A significant portion of these transfers went to Ukraine. Thanks to them, is managing to resist Russia's 3-day invasion for the second years and counting.
Given Putin's repeated threat of nuclear Armageddon and annexing west Europe up to Lisbon, undoubtedly the world feels free thanks to its ability to oppose these imperialist ambitions of a few tin-pot dictators.