The Supreme Court on Friday agreed to decide whether state laws regulating content moderation practices of social-media platforms violate the First Amendment, the latest of several cases the justices have taken to define the Constitution’s reach into the digital world.