Uber and Postmates have reportedly sued California in federal court over a new law creating restrictions on classifying employees as independent contractors, arguing that it is unconstitutional.

Reuters reported Monday that a spokesman for California's attorney general, Xavier Becerra Xavier BecerraState AGs condemn HUD rule allowing shelters to serve people on basis of biological sex OVERNIGHT ENERGY: Trump casts doubt on climate change science during briefing on wildfires | Biden attacks Trump's climate record amid Western wildfires, lays out his plan | 20 states sue EPA over methane emissions standards rollback 20 states sue EPA over methane emissions standards rollback MORE (D), had confirmed that his office had received the lawsuit and was reviewing the complaint.

“It irreparably harms network companies and app-based independent service providers by denying their constitutional rights to be treated the same as others to whom they are similarly situated,” read the court documents.

ADVERTISEMENT

The September law signed by Gov. Gavin Newsom Gavin Newsom Newsom signs law allowing transgender inmates to be placed in prison by their gender identity OVERNIGHT ENERGY: California seeks to sell only electric cars by 2035 | EPA threatens to close New York City office after Trump threats to 'anarchist' cities | House energy package sparks criticism from left and right California seeks to sell only electric cars by 2035 MORE (D) is aimed at strengthening rights for workers in the state and stipulates that independent contractors can only be workers who own their own business, work in a field different than the company which contracts them and must be free to choose their own hours, according to the Los Angeles Times.

Court documents filed by Uber and Postmates also pointed to a study that found the law could raise overall operating costs for ride-sharing companies by nearly a third.

Uber and Lyft as well as the food delivery app DoorDash have reportedly planned a campaign to include an initiative on the state's 2020 ballot that if passed would exempt the companies from the new law.