In the wake of a changing climate, solar power proved reliable – and essential – in California’s energy mix