When big blasts of energy from the sun envelop the Earth, they can be so strong that a 2015 event so weakened Earth’s protective magnetic field that it penetrated to the atmosphere, posing a threat to everything from circling space station astronauts to delicate electronics and communication systems.