The development of batteries for electric vehicles has progressed much faster than experts and policymakers had anticipated.