Court: NYC can ban church service in public school