The institution shut its doors to the public on Tuesday in a decision that a federal judge will scrutinize.