I'm sure TSMC has a lot of influence over the Taiwanese government. However, the people of Taiwan aren't stupid in all of this. They know this is a horrible deal for them and would make sure their politicians hear about it.
Even that understates things. TSMC is Taiwan’s singular Trump card in geopolitical negotiations. Now that righteousness and moral high grounds don’t matter any more, it’s the only thing keeping Taiwan safe.