A federal judge on Saturday issued a temporary restraining order imposing a pause on repairs at the East Potomac Golf Course and halting President Donald Trump’s plans to redevelop the course into a championship-like venue.

U.S. District Judge Ana Reyes issued the order, obtained by The Athletic, one day before the course was set to close for 15 months. Plaintiffs have argued that Trump’s plan to close the park would harm those “who use the park regularly for recreational activities” and that the closure runs counter to the public interest.

Judge Reyes said the Trump administration will not be required to operate the course while the case proceeds, but required that the golf courses, paths and picnic areas remain “open and accessible to the public.” The restraining order will be in effect “through November 28, 2026, or further order from the Court, whichever comes first.”

Justice Department lawyers had argued that East Potomac Park, which includes three golf courses, a miniature course, bike riding lanes and other recreational areas, was being closed due to safety concerns and that the lease between the government and current operator, National Links Trust, was ending Sunday.

Trump’s posts on social media factored into Judge Reyes’ decision. The president announced Oct. 18 on social media that repairs would begin Nov. 15 despite the legal challenge initiated in February seeking to halt the renovations. He said the current course is “dilapidated, and of no further use or effect.” But according to the filing, the National Park Service “did not state that it planned to close the park to follow the president’s directive,” and did not provide a timeline when it informed the court of a temporary closing, raising concerns about the reason behind the closing.

On Oct. 12, Judge Reyes admonished the Trump administration for removing trees from the courses while giving little notice to the court or plaintiffs who were trying to stop redevelopment. On Oct. 28, 10 days after Trump’s social media post revealing his renovation plan, the government informed the court it planned to shut down the Potomac Park, including the East Potomac Golf Course “consistent with the president’s directive.”

Before Reyes’ order, Trump lashed out in a social media post Saturday, saying that Reyes “doesn’t want us to quickly and inexpensively fix up the Course which is, also, very dangerous.” He also said the redevelopment would “evolve into something very special, something which the Judge will be able to take great pride in seeing!”