In a blow to the Pentagon's plan to shake up National Guard units, a judge ruled Friday that the Defense Department (search) does not have the authority to dissolve a Pennsylvania Air National Guard division without the governor's approval.

U.S. District Judge John R. Padova (search) said Defense Secretary Donald Rumsfeld (search) should have gotten consent from Gov. Ed Rendell before moving to deactivate the 111th Fighter Wing of the Pennsylvania Air National Guard (search). The judge said the Pentagon's recommendation to close the unit is "null and void."

The ruling came as a base closing commission wrapped up its work in deciding the fate of military bases around the nation. The commission was expected to vote Friday on the recommendation to close the Willow Grove (search) station in Pennsylvania. Willow Grove is home to the fighter wing and Air Force and Navy reserve units, along with other military units.

Several other states have filed, or are considering, similar lawsuits. It was not immediately clear how the ruling might affect the fate of other guard units targeted by the Pentagon.

The Pentagon had recommended that the guard unit, with more than 1,000 jobs, be deactivated and that its aircraft either be retired or relocated to other Air National Guard bases.

The lawsuit didn't challenge the Pentagon's authority to close Willow Grove, only whether the federal government could deactivate the 111th Fighter Wing based there.

The judge wrote that the loss of the guard unit would deprive the state of nearly 25 percent of its total Air Guard strength along with eliminating a unit vital to homeland security in the state.

Justice Department lawyers had argued that the Base Realignment and Closure Act (search) supersedes the federal law requiring gubernatorial consent.

Rendell expressed confidence that the decision would hold up on appeal and praised the judge's courage for standing up to the federal government.

"We're exceptionally gratified," Rendell said. "I think it's fair to say we're elated."

Rendell sent a letter to the Pentagon on May 26 advising Rumsfeld that he did not consent to the deactivation or relocation of the fighter wing.

The governor commands the unit's activities 90 percent of the time, as it responds to floods, errant planes and other emergencies, Rendell said. Federal officials command the Guard only when it is activated for missions such as the war in Iraq.

Justice Department lawyer Matthew Lepore, who argued the federal government's case in court, and the Pentagon declined to comment on the ruling.