The Trump administration will be able to close the Kennedy Center for two years for renovations, a federal judge has said – an abrupt turn in the yearlong court battle over the future of the arts institution.

DC District Court Judge Christopher Cooper had previously blocked the center’s closure, after Democratic Rep. Joyce Beatty, a member of its board, sued amid attempts by President Donald Trump to affix his name to the institution. He and his allies later argued that the center must close for renovations and that he should be acknowledged for contributing to the needed construction.

Hundreds of Washingtonians rallied in opposition to the president’s plans.

When he originally issued the order to keep the center open, Cooper said that because the institution was a monument to former President John F. Kennedy authorized by Congress, Trump and board members aligned with him couldn’t unilaterally change it drastically or close it completely without doing extensive planning and responsible budgeting decisions.

But on Friday, Cooper said in an opinion that the center’s board had satisfied those conditions by planning a limited closure for renovations and repairs.

“The salient point is that, based on solid new evidence, the Board reasonably concluded the Center needs to stanch the bleeding, and that a full closure of the main building would best accomplish that goal,” he wrote.

“The Court will not stand in its way,” Cooper wrote.

The judge is not allowing any changes to the Kennedy Center name, but Trump, reacting to Friday’s opinion, appeared to suggest again that this would be a condition of the renovation.

Hailing the green light for the closure as a “BIG WIN” on social media, the president wrote that Cooper “did the right thing, and construction will begin as soon as the Trump Administration, and everyone who worked so hard on this Development, are given recognition for the incredible work they have done in planning, financing, fundraising, future fundraising, and the actual, soon to begin, construction of the Building.”

Still, shows and performers ended their runs or were canceled once Trump took control of the board, leaving the center running a fraction of its former programming.

Trump has also threatened to demolish the center if the courts don’t allow his board to proceed as it wants.

In recent weeks, with the full two-year closure of the center on the line, the board has already endorsed the removal of trees and blocked off some of the building to the public, because of emergency repairs, like responding to water damage, late this summer.

Beatty also has accused other board members of abdicating their financial responsibility to the Kennedy Center, and potentially taking positions that would harm it.

Nathaniel Zelinsky, an attorney for Beatty, argued at the recent hearing that Cooper should stay involved in the Kennedy Center’s operations, or to keep court orders in place to allow for a 4-year construction plan that only closes the center partly for renovations and not in full.

“The president is putting a gun to the head of the center and holding funds hostage,” Zelinsky had said.

However, Cooper contended on Friday that: “Whoever deserves blame for the Center’s current condition, dragging out the bloodletting over four years would likely make the patient worse, not better.”

“A hard two-year reset may well be the better medicine.”

This story has been updated with additional details.