The California Public Utilities Commission has ordered utilities to buy an unprecedented amount of renewable energy and battery storage as the state phases out four natural-gas-fired power plants and retires Diablo Canyon, the state’s last nuclear plant, starting in 2024.