Google will pay $50 million to settle a class-action lawsuit accusing it of paying Black workers less.