After five years of delays, environmental reform laws will pass parliament following a deal between the government and Greens.