A federal judge has rejected a claim that the Poway Unified School District violated a teenager's First Amendment rights by pulling him out of class for wearing a T-shirt with an anti-gay slogan.

Tuesday's ruling by U.S. District Judge John Houston reaffirmed an earlier decision in which he found the school district's policy on hate speech lawful.

Tyler Harper sued the school in 2004 after the district said he could not wear a shirt printed with a Bible verse condemning homosexuality. His younger sister, Kelsie, was named as a plaintiff after he graduated.