The measure was passed by 184 votes to seven to allow for Finland’s accession to the Western military alliance, clearing the last required national hurdle.