The justices heard more than two and a half hours of arguments regarding the claim by the family of an exchange students killed in an Islamic State attack that Google’s YouTube should be liable for promoting content from the group. But justices across the ideological spectrum said they were confused by the arguments offered by the family’s lawyer and worried that the court could undermine an effort by Congress to provide immunity for the platforms decades ago.