Labor’s agenda has won the Coalition’s support, but the Greens said it was the most “extreme migration legislation since the White Australia policy”.