Treehouse in New York City survives appeals