Seven U.S. states along the drought-starved Colorado River have reached a deal with the Biden administration to conserve water in a “historic consensus” to prevent supply problems for big cities like Los Angeles and Phoenix as well as farmers.

In the agreement, Arizona, California and Nevada will take 3 million-acre-feet less water from the river through the end of 2026, the U.S. Department of the Interior said on Monday.