General Motors is hitting the brakes on one of its most ambitious electric-vehicle investments and shedding thousands of factory jobs, a sharp reset that cuts across assembly lines and battery plants ...