The states that depend heavily on the Colorado River, which is shrinking due to the effects of climate change and excessive use and overuse, are racing to agree on a long-term arrangement to share the resource that is shrinking before the time the year’s end.