Amazon will pay $3.95 million to settle a lawsuit claiming that it diverted the tips its Flex drivers received to pay for the employees' base wages.