I'm afraid there could be a hidden math behind this.
As in: cost of a war with China vs. economic cost of China acquiring TSMC tech.
As long as a war is cheaper, the US is protecting Taiwan.
I'm no expert, but it usually comes down to something like this.