$ 0 0 Automakers have made battery-powered cars largely to meet environmental rules. Now they’re putting more skin in the game.