Sweden’s flag was raised at NATO headquarters on Monday, cementing the Nordic country’s place as the 32nd member two years after Russia’s full-scale invasion of Ukraine persuaded its reluctant public to seek safety under the alliance’s security umbrella.