Uber and Lyft have agreed to pay New York drivers a more than $300 million settlement and increase drivers’ benefits after an investigation into the ride-sharing apps found they withheld wages and benefits from drivers, New York Attorney General Letitia James’ office said Thursday.