The Turnbull government has struck a deal with the Labor opposition to ensure sufficient amounts of water are returned to the Murray-Darling river system for environmental flows.
A suite of new compliance measures sealed the agreement, with the opposition agreeing not to support a Greens push to block changes to the Murray-Darling Basin Plan in the Senate on Tuesday.
Labor will also support changes it blocked in February to reduce the amount of water being returned to the environment in southern Queensland and northern New South Wales.
Water Minister David Littleproud said the compliance measures would target irrigators doing the wrong thing through measures like improved metering.
"If you're doing the right thing, there's nothing to fear," Mr Littleproud told reporters in Canberra on Monday.
"But if you aren't, you're going to get caught and we're going to make you swing."
Tuesday's disallowance motion would have blocked a change to the plan allowing 605 gigalitres of water to be replaced with 37 projects instead of being recovered from farmers' entitlements and returned to the environment.
Under the bipartisan deal, the coalition guaranteed its commitment to 450GL of environmental water for the basin, with no negative social or economic impacts.
There will also be increased consultation with indigenous people and $20 million for communities impacted by the basin plan.
"This gives certainty to the two million Australians up and down the basin," Mr Littleproud said.
The minister has contacted his NSW counterpart Niall Blair, who threatened to walk away from the plan earlier in the year.
"I've had detailed discussions with Niall Blair who has been constructive all the way through," Mr Littleproud said.
Labor's water spokesman Tony Burke said new transparency, auditing and compliance requirements would address his party's concerns with changes to the plan.
"This puts the Murray-Darling Basin Plan back on a solid footing to provide a pathway for the rivers to return to health," Mr Burke said.
Allegations of water theft in northern parts of the basin have led to concerns over compliance.
"If we're going to have integrity in the Murray-Darling Basin, there needs to be strong compliance," Mr Littleproud said.