School officials had the right to block the publication of a student-run high school newspaper containing an explicit cartoon about a sex education class, the 2nd U.S. Circuit Court of Appeals has ruled.