> Since the cold war ended, many just sort of coasted on military spending.
So did the US until the 2001 (and, actually, the free fall in US military spending relative to GDP started well before the end of the cold war), and by the 2010s it was back falling in the US, too.
> Of course, since Russia invaded Ukraine in 2022, that's changed for a lot of them.
It actually changed since Russia invaded Ukraine in 2014 for the non-US members of NATO (which was also the trigger for the NATO defense spending target.) It changed for the US after the 2022 escalation (US defense spending as a share of GDP declined between 2014 and the 2022 escalation.)