Sweden’s NATO accession was approved by Hungary’s parliament Monday, clearing the last hurdle before the historic step by the Nordic country whose neutrality lasted through two world wars and the simmering conflict of the Cold War.

Hungary’s vote ended months of delays to complete Sweden’s security policy shift and followed a visit by Swedish Prime Minister Ulf Kristersson on Friday during which the two countries signed an arms deal.

Sweden’s NATO membership was supported by 188 lawmakers in Hungarian parliament, with 6 against and no abstentions.