Judge issues written gag order from Trump’s statements