DETROIT — General Motors and Ford Motor have rivaled each other for more than a century in racing, vehicle sales and many other automobile-related activities.

But their latest battlegrounds have moved to actual battlefields and the U.S. energy grid.