It was signed before the SCOTUS ruling.
It was a preemptive measure.
It had wide support.
https://www.texastribune.org/2015/06/11/gov-abbott-signs-pastor-protection-act/
http://erlc.com/erlc/herewestand
The pastor of my church is on this list.