Sterling Anderson, the executive leading General Motors Co.’s technology push, is emerging as the front-runner to eventually succeed CEO Mary Barra, 63, when she retires from the storied automaker.