In a US lawsuit over racial bias, Tesla was told to pay $3.2 million.