A federal judge ordered some Biden administration agencies and top officials not to communicate with social media companies about certain content.