A judge bars officials from contacting platforms over “content containing protected free speech”.