The legislation still has to go to the upper house of the parliament for approval.