Six Years Ago, He Helped Expose VW’s Diesel Fraud. This Year, G.M. Let Him Go.