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