European countries, after allowing their militaries to atrophy since the end of the Cold War, are making a U-turn.