I don't know about Texas, but there are lots of bizarre pro-woman laws on the books.
I have a friend who was arrested one night while reading a story to his three children. His wife had taken up with an old boyfriend and wanted to get rid of him, so she committed perjury and got a temporary restraining order is which resulted in arrest and a no-contact order. The wife was so dumb, she put her and the kids with the boyfriend at the beach on Facebook while the husband was still locked up.
Anyway, the order was set aside once he got to court (after eight weeks living in his car and forbidden to speak to his 4, 6, and 8 year old kids). The female judge entered an order that her affidavit to obtain the TRO was false.
Good news, right? Good for his divorce case?
Nope. In New Hampshire, perjury to obtain a TRO is inadmissible in a subsequent divorce case, by statute.
I would challenge that law in federal court. Equal protection..........................