Labour leader Andrew Little has Peter Dunne to thank after the United Future leader backed his Healthy Homes Bill in Parliament last night.
Mr Little says he didn't know Mr Dunne would support him
"I had a good discussion with him about it," he says. "I didn't know it until the vote was declared, so it was a great moment."
The Healthy Home Guarantee Bill requires minimum standards to be set for heating, insulation, ventilation and drainage in rental homes.
The Government opposed Andrew Little's Bill but lost the vote when its allies, United Future and the Māori Party, got behind it.
It passed its first reading by 61 votes to 60.
"The principle is that no New Zealander should have to live in a house that makes them and their children sick," Mr Little says.
"The idea that we allow 42,000 Kiwi kids to go to hospital for avoidable infections is intolerable."
Labour, the Greens, NZ First, the Maori Party and United Future supported the Bill.
National and ACT opposed it.
The Bill has been sent to a select committee for public submissions.
A previous Labour Bill which would have done a similar thing was scuppered by National last year after a vote was tied at 60-60.
At the time, the Government called the Bill, which would have including inspecting every home, "extreme".
Newshub. / NZN