I’m not particularly happy about that law or similar ones in other states, but what you said is inaccurate.
Therefore All companies ARE allowed to “boycott energy companies, discriminate against firearm entities or associations, or boycott Israel” https://texasattorneygeneral.gov/sites/default/files/images/...
Not doing business is something else. States regularly prohibit companies over 500 employees from signing specific contracts, that doesn’t make it illegal to be a company with over 500 employees.
The moment anybody else in the world stops boycotting Israel then finally Texas citizens will be fully free to boycott Israel
My point was that there is a foreign country that has successfully written laws (using a 'model act', i.e. copy-paste) for 38 US states that is not intended to serve the interest of US citizens, but that of the foreign country. I'm not aware of any other examples of that amount of reach by other countries or foreign interests. Maybe petrochemical/energy?