A federal appeals court upheld a Texas law that requires abortion clinics to qualify as “ambulatory surgical centers,” a decision opponents say will shut down most clinics in the state.

The plaintiffs, a group of abortion clinics and doctors, argued that the 2013 law unconstitutionally restricts the right to obtain an abortion.

But in a ruling...