The dogs in New York City’s schools comfort students and offer a lesson in leadership