SEATTLE (Reuters) - A federal judge on Tuesday dismissed a lawsuit against the city of Seattle over a landmark law which allows Uber and Lyft drivers to unionize.

The Uber logo is seen on a vehicle near Union Square in San Francisco, California, U.S. May 7, 2015. REUTERS/Robert Galbraith/File Photo

Seattle last year became the first U.S. city to pass a law giving drivers for ride-hailing apps, as well as taxi and for-hire drivers, the right to collectively negotiate on pay and working conditions.

The litigation unfolded amid a national debate over what level of benefits are owed to workers in the so-called “gig economy.”

Both Uber and Lyft vigorously opposed the measure, arguing that existing federal labor law trumps local legislation.

The U.S. Chamber of Commerce, a federation of more than 3 million businesses, filed a lawsuit in March and asked a Seattle federal judge to suspend the ordinance.

In a ruling on Tuesday, U.S. District Judge Robert Lasnik sided with city officials who argued that the lawsuit was filed too early because the ordinance had not yet taken effect, and who said the chamber did not have legal standing to sue because it was not directly impacted.

“Neither of the Chambers’ members has suffered an injury that is traceable to the Ordinance and would be redressed if the Ordinance were declared invalid or enforcement were otherwise enjoined,” Lasnik wrote in an 8-page opinion. “Thus, the Chamber itself has no standing to pursue the claims asserted in this litigation.”

Seattle’s attorney did not immediately respond to a request for comment.

The chamber argued that Uber is one of its members, so it has standing, and that the city had concrete plans to begin implementation of the law this year so it is not too early.

Seattle has merely “delayed coming to grips with the legal flaws at the heart of this ordinance,” the chamber said in a statement.

“While the judge held that it is too early to decide this case, he made clear at oral argument that he stands ready to hear a challenge to Seattle’s unprecedented ordinance in the future,” it said.

Seattle’s ordinance was approved unanimously by the city council but opposed by Mayor Ed Murray. The Teamsters union also organized in favor of it.