Heads of federal agencies turned Trump’s executive orders into mandates to cut communication with outside parties, halt most foreign aid, and pause legal filings.