Judge says Trump has the right to testify despite gag order