The court unanimously sided with Twitter in a case brought by plaintiffs who said it aided and abetted terrorism. Based on its opinion, it sent a related case involving Google back to lower courts.