Ruling protects fish, jeopardizes California water deliveries