Court backs tribes on San Francisco Peaks