The Taiwanese chipmaker’s attempt to keep the US president on side is not without risks