Justices shot down concerns from the app and content creators that the law violates their First Amendment rights.