The suit, filed in March, had come to encapsulate a moment of unusual civic strife over one of City Hall’s most notable policies. The city and its supporters say bicycle lanes are progressive, healthy additions to streets that reduce traffic accidents and promote more environmentally friendly modes of transport. Opponents have accused the city of neglecting the needs of car drivers and say the lanes can create dangers for pedestrians.

Photo

“This decision results in a hands-down victory for communities across the city,” Ms. Sadik-Khan said in a statement on Tuesday that described the plaintiffs as “dead wrong” in their arguments.

“Merely not liking a change is no basis for a frivolous lawsuit to reverse it,” she added.

The opponents of the lane had sued on the basis of a state statute that allows government actions to be challenged on the grounds that they are arbitrary or unfair. But their complaint incorporated broader arguments often levied against the Transportation Department by its critics, who say the city has been selective in the information it presents on its projects for public review.

Newsletter Sign Up Continue reading the main story Please verify you're not a robot by clicking the box. Invalid email address. Please re-enter. You must select a newsletter to subscribe to. Sign Up You will receive emails containing news content , updates and promotions from The New York Times. You may opt-out at any time. You agree to receive occasional updates and special offers for The New York Times's products and services. Thank you for subscribing. An error has occurred. Please try again later. View all New York Times newsletters.

The judge’s decision ultimately turned on a dispute over whether the lane had been installed on a trial basis, similar to the so-called “pilot” approach taken by Ms. Sadik-Khan on other high-profile projects, like the pedestrian plazas in Times and Herald Squares.

In court papers, the opponents argued that the Transportation Department had suggested that the lane was an experiment and would be made permanent only after the release of statistics demonstrating its effect on traffic and pedestrian safety along Prospect Park West. Those statistics were presented at a community board meeting in January.

The opponents argued that the city decided to make the lane permanent only after those statistics were released, thus putting their suit within the statute of limitations. But the city argued that the lane had been intended as permanent all along, and the judge found that the opponents “presented no evidence that D.O.T. viewed the bikeway as a pilot or temporary project.”

Mr. Walden, the plaintiffs’ lawyer, said in his statement that “the judge had a very different and very independent view of the facts,” and noted that the judge had dismissed some claims “without prejudice,” meaning that another filing on the topic is still possible.

The opponents did score one legal victory, however, as the judge found that the Transportation Department had not adequately complied with a Freedom of Information request for internal statistics and documents related to the bicycle lane. In one instance, the judge said the agency’s denial of a particular request made “no sense.”

The Transportation Department was directed by the judge to furnish the opponents with the requested documents or provide a detailed explanation of why the agency was justified in withholding or redacting certain information related to the lane.