The ride-hailing companies are accused of defying a new state law that says gig workers should be treated as employees.