Calif. policy protecting major rivers upheld in long-awaited court decision