Judge limits government's contact with social media companies after GOP states sue