BOISE, Idaho — Legislation to end years of litigation and help finalize an agreement involving water rights in heavily populated southwestern Idaho is headed to the governor's desk.

The Senate voted 35-0 on Tuesday to send to Gov. Brad Little the bill that involves water rights in the Boise River system.

MORE: Water legislation bill clears Idaho House, heads to Senate

The lawsuits involved canal companies, irrigation districts and the state of Idaho, and concerned the storage of water in three Boise River system reservoirs during flood control operations.

The legislation makes sure rights to water that refills the system following flood control releases are protected should additional large water storage systems be built.

Little, as lieutenant governor before being elected governor in November, took part in negotiations leading up to the agreement and is expected to sign the bill into law.

MORE: Legislative fix for contentious water rights issue advances in Idaho House