New York appeals court overturns