This man is the one who is discriminating, he has freedom to do so but he does not have freedom from the consequences. He can't do business with the government, just as I (in theory) could legally refuse to do business with him on the same basis.
You personally have that right. The state of Texas must provide contracts with no bias and only considering the quality of work the contractor would provide.
The state is not allowed to discriminate based on arbitrary attributes of that contractor.