Google has paid £21.5 million to settle a racial bias lawsuit after claims that different ethnic backgrounds had different salaries.