With EV sales waning, GM and battery makers see an opportunity to supply batteries for energy storage systems for AI data centers and utilities.