Media organizations are preparing for what they fear will be a legal and political onslaught from the new administration.