Delivery apps such as Uber Eats, DoorDash and Grubhub will have to guarantee freelance workers close to $18 an hour.