Appeals court upholds challenged parts of Texas abortion law