President Donald Trump announced Tuesday that the Kennedy Center will close its main building immediately for safety-related reasons and planned reconstruction, but said the larger renovation project remains dependent on the outcome of an ongoing legal battle over his name at the performing arts center.

Trump said the Kennedy Center’s board agreed “almost unanimously” to close the building and begin the reconstruction process. He said the project cannot fully move forward until the U.S. Court of Appeals for the D.C. Circuit rules on the board’s decision to recognize his name at the center, with the Department of Justice preparing to seek an expedited appeal.

The announcement follows a federal judge’s ruling Tuesday blocking the Kennedy Center board from adding Trump’s name to the building or renaming portions of its grounds without congressional approval. U.S. District Judge Christopher Cooper has previously ruled that Congress has authority over changes to the name of the federally designated memorial to President John F. Kennedy.

Trump has argued that the Kennedy Center requires extensive repairs after years of maintenance problems. The center’s board has cited structural deterioration, including a recent partial ceiling collapse in the Grand Foyer, as evidence that the main building should be closed while major work is completed. A board resolution said consultants and center officials considered the building unsafe for continued occupancy.

The proposed reconstruction is expected to be a major undertaking. Earlier plans called for roughly two years of work involving structural repairs as well as upgrades to aging heating and cooling systems, electrical equipment, plumbing, elevators and fire-safety systems. The center has also faced serious financial problems, with internal documents warning that it could face bankruptcy and struggle to meet payroll and maintenance obligations without additional financial support.

Trump said $17 million that he raised for the Kennedy Center has been placed in the institution’s account to help keep it operating during the dispute. He said the Justice Department will seek an expedited appeal of the ruling, while warning that if the courts ultimately prevent the board’s approved recognition of his role and the decision is not overturned by the Supreme Court, the planned reconstruction and renovation will not proceed.

The closure adds another major development to the increasingly contentious dispute over the Kennedy Center’s future. The legal battle now involves not only the building’s name and authority over the federally designated memorial, but also whether the center can move forward with the reconstruction plan while the case continues through the courts.