New York appeals court reinstates Trump gag