New Jersey court rules Catholic school can require teachers to follow Catholic teaching