On Wednesday night, 50 MPs voted for the legislation, which was introduced by the Labor government, and 41 MPs voted against it.

The debate ran for two days and involved personal testimony from dozens of politicians.