California’s push to use only carbon-free electricity hinges on a big bet — that battery costs will plunge.