New York’s highest court narrows class of statutory residents — good news for some out-of-state owners of residential property