Legislation allowing the partial lease of the New South Wales' electricity network has passed through the NSW Parliament.

The legislation was passed late on Wednesday night after the Upper House debated more than 60 amendments that Labor, the Greens and the Christian Democrats wanted to make to the Government's power privatisation legislation.

The bills allow the 49 per cent long-term lease of the state's poles and wires to the private sector for 99 years.

While Labor and the Greens voted against it, all the Government needed was the support of the Christian Democrats.

The lease is expected to generate $20 billion in revenue.

NSW Premier Mike Baird said the money would be spent on a range of infrastructure projects.

"With that funding we're going to build the schools, the hospitals, road and rail that we have waited for," he said.

"We now have the capacity to get on with the projects that we promised before the election.

"We will now get on and start delivering them and I know the difference it will make to people's lives across the state."

But Greens MP John Kaye said the outcome was not a win for the people of NSW.

"There isn't anything really in the way for upsides in this legislation for anybody in New South Wales other than the multinational utility operations getting control of this state's energy future," Mr Kaye said.

Legislative process 'a complete charade' Labor says

On Tuesday a parliamentary inquiry into the partial lease of the electricity network recommended the transaction go ahead.

The inquiry's backing prompted the Government to introduce its legislation to the Upper House.

Balance-of-power MP Fred Nile demanded the inquiry as a condition for his support, and chaired the Upper House committee.

Labor's Upper House leader Adam Searle said the outcome showed a debasing of parliamentary processes.

"Worst of all, the Reverend Nile revealed that the entire process of the parliamentary inquiry into the electricity transaction and the legislative process was just a complete charade entered into between himself and the Premier Baird," he said.

Earlier on Wednesday night, Mr Searle warned Government MPs who were calling out during his speech that they could be in for a long night.

"I acknowledge that interjection and if the honourable member wishes us to be here all night, then we will be," he said.

"We can take these amendments one by one and we and divide on every one of them and if you keep interjecting we will be here all night."

In May, Mr Baird was grilled at the parliamentary inquiry about contact his staff had with UBS before the bank favourably altered its report into the power sale.

Mr Baird told the inquiry his chief of staff and director of policy raised concerns with the head of UBS after it issued a report during the election campaign that said the sale was "bad for the budget, good for the state".