Tesla reached a settlement with a Black employee who won two trials over racial abuse.