GM Detroit plant would get $3 billion investment to stay open