The food delivery company has agreed to settle claims brought by the Massachusetts attorney general that it charged restaurants more than allowed during Covid.