Simon Marks, a correspondent for the New York Times and Politico, said his social media accounts were also scrutinized.