Uber, Lyft drivers carve out deal that will keep them operat