Judge in the US federal case against Trump says lawyers cannot release evidence to media or on social platforms.