If you have to miss class in Texas universities for a medical reason, your absence will be excused. But you still have to be able to pass tests to complete the class, just like all other students.

Two UT Austin professors are suing the Biden administration over its revision to Title IX regulations that expand protections for LGBTQ+ and pregnant students in federally funded education programs.

More...
“I have no intention of complying with the Biden Administration's recently announced Title IX edict, which has nothing to do with ‘sex’ discrimination and represents nothing more than an attempt to force every educator in the United States to conform to a highly contentious interpretation of gender ideology and abortion rights,” Hatfield and Bonevac each said in declarations for the lawsuit.

The professors signed onto a lawsuit Texas Attorney General Ken Paxton filed in April against Biden administration officials. The suit argues the U.S. Department of Education does not have the authority to make these changes to Title IX and that the changes themselves are unlawful.

“I will not accommodate or become complicit in these crimes by excusing a student’s absence from class if that student skips class to obtain an illegal abortion in Texas, or to perform a self-managed abortion with illegally obtained abortion drugs,” Hatfield said in his filing.
It seems like if a student misses class, this professor is going to have to ask a lot of very personal questions to decide if the absence is excused.