Hungary was the last country holding up Sweden's bid, made after Russia's invasion of Ukraine.