He repeatedly attacked the media, leading UN experts to warn that Trump's rhetoric raised the risk of violence against journalists.