Two of the three opposition parties walked out of parliament before the vote.
They accuse the governing Fidesz party of imposing divisive right-wing ideology on the country.
The votes – 262 in favour to 44 against with one abstention – reflect the two-thirds majority enjoyed by Fidesz.
A storm of applause erupted from the benches of the governing party, followed by the Hungarian national anthem, once the result was declared.
Source: BBC News EuropeGoogle+