Canberra: The clean energy sector will finally face certainty after the parliament passed legislation to slash the renewable energy target.

A bipartisan deal - agreed to last month after a lengthy political stalemate that hamstrung the clean energy sector - will slash the target from 41,000 gigawatt hours to 33,000.

A wind turbine stands at the Capital Wind Farm, operated by Infigen Energy, in Bungendore, New South Wales. A wind farm commissioner will be established to resolve complaints from concerned residents living near wind turbines. Credit:Bloomberg

Legislation inscribing that deal passed the Senate during an extended sitting late into Tuesday night.

Labor and the Greens failed to scrap wood waste burning as a renewable source under the scheme after the government did a deal with four crossbenchers to establish a wind farm commissioner.