The case was brought by plaintiffs who said the social media company aided and abetted terrorism. Based on its opinion, the Supreme Court sent a related case involving Google back to the lower courts.