The New Jersey Supreme Court ruled in favor of a Catholic school that terminated a teacher for having premarital sex, according to court documents.