Uber and Lyft are paying $328 million to settle a case in New York over allegations the companies short-changed its drivers.