In two “landmark” settlements negotiated by the New York state Attorney General’s Office, Uber and Lyft have agreed to pay a combined $338 million to drivers to resolve allegations the companies deducted taxes and fees from drivers’ payments, instead of passing those costs onto passengers.

Attorneys for drivers were jubilant over the result.