I suspect that Texas legislators assumed that passing this into law would bring them rewards in the form of midterm votes from the conservative base.

What they failed to consider and think all the way through was the outrage that's going to pour out from the other side (especially given how badly-written the law is), during those same midterms...