DoorDash has reached an agreement with the New York Attorney General over an old practice wherein the company used customers’ tips to subsidize its drivers’ pay.