A federal judge has blocked the Trump administration from closing a historic Washington, D.C., park and golf course.