The panel’s decision removed a major obstacle to the Justice Department’s investigation into Mr. Trump’s handling of sensitive government documents.