Taiwan's TSMC plans a $1 billion investment, splitting $500 million each for stakes in AI firms Anthropic and OpenAI.