May 19 (UPI) -- A federal judge ruled Monday that a DOGE-lead takeover of the U.S. Institute of Peace by the Trump administration was "unlawful."

U.S. District Judge Beryl Howell said the removal of USIP's president and his replacement by a DOGE-appointed official along with the termination of "nearly all" its staff and transfer of USIP property to the U.S. General Services administration was "effectuated by illegitimately-installed leaders who lacked legal authority to take these actions, which must therefore be declared null and void," she wrote.

Personnel from White House adviser Elon Musk's Department of Government Efficiency gained access to the U.S. Institute of Peace after originally being turned away in March. USIP then sued the administration for "unlawful dismantling," with its acting chief saying DOGE "has broken into our building."

Legislation signed in 1984 by then-President Ronald Reagan had created the USIP to be an "independent nonprofit corporation established by Congress."

The Trump administration fired most of USIP's 12-member board, leaving U.S. Secretary of State Marco Rubio, U.S. Defense Secretary Pete Hegseth and National Defense University President Peter Garvin as its three remaining board members.