Taiwan's economy ministry has given the green light to a planned chip fab in Germany with TSMC holding the biggest stake.