The carmaker will follow Tesla in making large batteries used by electric utilities, data centers and other businesses to handle fluctuations in power supply and demand.