But President-elect Donald Trump’s attacks and restrictions on the press during the 2016 campaign, and his refusal to provide traditional levels of access during his presidential transition, have alarmed journalists who have identified potential threats at home.