Justice Minister Andrew Little said the additional rule increases the threshold for a party to kick out one of its own MPs.
The other rules mirror the previous law. At least two-thirds of a party caucus would have to agree with the party leader to expel an MP, after written notice to the MP and a period of 21 working days for the MP to respond.
Little said the 2005 Supreme Court decision between the Act Party and former MP Donna Awatere Huata also was a reason to include the additional clause about party rule compliance.
The court ruled that Huata should be removed from Parliament and replaced by an Act list MP, rather than stay on as an independent.
Little said the court had made it clear that it did not want to have to make qualitative judgments on whether expulsion is justified, which could lead to interviewing MPs.
The court should instead be able to see "on-the-surface compliance" by looking at the party rules.
"They don't want to go beyond that. Putting in this added thing about compliance with the party rules is an extra, easy requirement for a court to look at, if there is a challenge to a decision."
A party-hopping law came in under the Labour-Alliance coalition in 2001, but had a sunset clause and expired in September 2005. It was re-introduced two months later as part of the Labour-NZ First confidence and supply agreement, but languished on the order paper until National won the 2008 election - when it was dropped altogether.
At the time, the Greens voted against it, with then-co-leader Rod Donald saying the bill was "anti-democratic and draconian".
"You've got to ask why people in Labour and NZ First think some of their MPs are going to desert their parties," Donald said.
The law required MPs who wanted to leave their party or were expelled, to resign from Parliament. It followed the case of Alamein Kopu, who left the Alliance in 1997 but stayed in Parliament and voted with National, and the public fracturing of NZ First, which lost nine MPs in 1998. Last month it was revealed that the Greens were considering asking for policy concessions in exchange for its support for a waka-jumping bill, but faced criticism from Labour and NZ First after the internal proposal was accidentally sent to media and made public.
Shaw later said that the Greens had ditched the horse-trading idea and would support the bill, though in its internal memo the Greens noted that doing so had the potential to upset its core party members.