Appeals court reinstates part of Texas abortion law