Sodomy is a behavior. To outlaw it, either wholly or in part, or not, is not legislated prejudice.
Sodomy as a behavior was not outlawed for 97% of the population of Texas, it was however outlawed for a minority of the citizens of the State.