Texas is not worried about Californian Liberals moving the needle, the political needle is moved by migrants from the South, who will not be encumbered by these kinds of laws.
It's hard to fathom the motivation for this kind of law politically, but I think we shouldn't doubt that it's made in 'good faith' by a lot of the people pushing it.
Salesforce/Benioff thing is mostly an issue of PR and branding though it might actually be beneficial for a very small number of people. This is the guy who has 'Religious People' (Monks) living in his home and virtue signals about it. A bunch of the Pied Piper gags are about him. That said, I think it's also probably in mostly good faith as well, I'm sure he's personally upset by the law.
Edit: I should say that it's not beyond reason that politicians might be thinking this even if it's really irrational, they do all sorts of wacky things. By and large I think Texas likes the ingress and the people ingressing there I think have some idea of what Texas is.
https://apnews.com/article/texas-business-census-2020-scienc...
[1] https://news.crunchbase.com/news/austin-reaches-top-10-in-us...
But the numbers in the last election show a shift in voter sentiment, that's all.
That Texas politicians would enact an 'abortion law' specifically to 'want fewer newcomers from California' isn't something demonstrated in that data.
I don't hold politicians in high regard, but generally they are good at populism, this approach wouldn't make any sense either pragmatically or politically.