Of the 450 members of Parliament present in the house, 253 MPs voted in favour, 196 abstained and one did not cast a vote.
The bill will be passed on to the Senate for consideration.
Prime Minister Prayut Chan-o-cha thanked the House of Representatives for passing the bill.