The New York institution has so far dodged many of its peers’ woes. But demographic shifts and enrollment declines are weighing on its finances.