An appeals court rejected the Trump administration’s demand for 18 months of LinkedIn communications from journalists who published more than 1,000 articles, ruling that the broad request could expose confidential sources unrelated to a DOJ investigation into leaked military information.