There is only two reasons a homosexual would get a job in a Catholic school.
Sodomites should not be allowed anywhere near children.
It sounds like a technical legal issue. The lower court can now, hopefully, hear the case and find that the Catholic school was within its First Amendment rights to dismiss the teacher for violating Catholic teaching and their contract with the school.