Officials canceled an energy project that put one of the world’s darkest astronomy sites at risk of increased light pollution and vibration.