The Trump-appointed judge’s move could upend years of efforts to enhance coordination between the government and social media companies