State labor regulators on Wednesday sued Uber Technologies Inc. and Lyft Inc. for allegedly misclassifying thousands of drivers as independent contractors, a move that intensifies the ongoing legal battle between California and the two national ride-hailing companies.

The state Labor Commissioner’s office said it filed twin suits in Alameda County Superior Court alleging Uber and Lyft violated state labor law shaped by the California Supreme Court’s 2018 Dynamex ruling and AB 5, both of which make it tougher for a company to declare its workers are self-employed rather than actual employees.