By stabilizing grids, utilizing surplus energy, and integrating with renewables, bitcoin mining is becoming a key part of the clean energy transition.