Among the enduring challenges of storing energy—for wind or solar farms, or backup storage for the energy grid or data centers—is batteries that can hold large amounts of electricity for a long time.