One Nation senators Malcolm Roberts and Pauline Hanson also voted to repeal the legislation.