Court rejects bid to rip out dam, restore Hetch Hetchy