“More and more of our government operates on social media,” said Justice Elena Kagan.