Both a trial-level judge and a three-judge panel in the Washington, DC, appeals court agreed that disclosing the Twitter search to Trump or his representatives could hurt the grand jury investigation.