California water wars have taken many legal twists and turns