A state judge yesterday handed a win to Gov. Pataki and Mayor Giuliani when he threw out a lawsuit attempting to block the installation of 10 electric generators by the New York Power Authority.

The generators are to be located in Brooklyn, Queens and The Bronx before June 1 to ensure the city doesn’t face brownouts and blackouts this summer.

The New York Public Interest Group and several other community groups banded together in an effort to block the new power plants because of concerns they were located in predominately low-income and minority neighborhoods.

In a 75-page ruling, Brooklyn State Supreme Court Judge Lawrence Knipel concluded the plaintiffs “failed to demonstrate that [NYPA] abused their discretions or violated any rule of law.”

Mayoral aides were jubilant.

“There was a charge here that the [state] Power Authority targeted poor communities of color and had purposely planned to put those generators in those poor communities of color,” said Corporation Counsel Michael Hess.

“The judge said he doesn’t feel that’s true. We think it’s a very significant decision.”

NYPIG spokesman Jason Babbie said the group would sift through the decision to see if there are grounds for appeal.

“We are saddened by the ruling and the fact we had to bring the state to court,” Babbie said.

While NYPA prevailed in Brooklyn, it lost a similar lawsuit on Wednesday in Queens that was filed by Silvercup Studios.