Federal appeals court upholds Texas abortion legislation