A judge imposed a gag order restricting what former President Donald Trump can say about those involved in his upcoming criminal trial in New York.