The largest U.S. automakers have backed away from electric vehicles, even as global sales are booming. The decision may make them obsolete.