New York University’s ambitious expansion plans for Greenwich Village got passing grades from a state judge who tossed out a neighborhood lawsuit aimed at halting the massive project.

State Supreme Court Justice Ellen Coin said neighbors haven’t gone through all the procedural steps that would have justified her stopping NYU’s massive build-out.

“Considering that NYU’s construction project is currently in its infancy . . . this legal controversy has not fully matured and is subject to long-term gestational development and a long array of changes that may be made to the underlying plans,” Coin wrote in her opinion, made public yesterday.

NYU wants to add 1.9 million square feet of classrooms, a gym and housing.

Coin denied the plaintiffs’ bid for a preliminary injunction and urged residents to test their beef with the state’s Division of Housing and Community Renewal.

The NYU plans have galvanized neighbors who don’t want to lose a garden, dog park, park and playgrounds to the huge building plans.

Actor and Village resident Matthew Broderick has also thrown his weight against NYU. “I think it’s a cynical and financially self-serving project and it has to be stopped by any legal means necessary.”

The NYU project could lead to construction lasting to 2031.

“I support any legal action to prevent NYU from building this catastrophically immense project in the middle of the Village. And that would also have us listening to construction for the next 20 years,” said Lonergan, a 1986 NYU grad.