New Jersey Supreme Court rules in favor of Catholic school that fired a teacher for having premarital sex