The automaker, federal officials and lawyers for a half-million diesel owners have reached a deal meant to resolve a big piece of the emissions cheating scandal.