Appeals court reinstates Trump gag order in civil trial