She noted that the bill preserves the rights of existing exploration permits, which cover an area of about 100,000sq km - roughly the size of the North Island.
"Those permit holders will have the same rights and privileges as before the law comes into force."
Greenpeace climate and energy campaigner Kate Simcock said the bill meant about 4 million sq km of the Earth's surface would be off-limits to oil and gas companies.
"And any deposits under our deep seas will stay in the ground where they belong."
The National Party's energy spokesman, Jonathan Young, said National would reverse the bill when it returned to power.
He lamented the lack of consultation and official advice before announcing the policy.
"When the minister was asked for evidence, for research, she was unable to present it," he said at the third reading.
"They did not seek analytical advice or information around the cost. They did not seek environmental evidence. They did not seek any consultation with the industry.
"All of the advice and analysis has come after the fact of the decision. It's an embarrassment."
Young said it was a "dark day" for the energy sector, and pledged that the next National Government would consult widely to reduce emissions, maintain business certainty, and minimise social disruption.