NBC: Catholic school had legal right to fire unmarried, pregnant teacher, New Jersey court rules