The Taiwanese chip giant will halt shipments to Chinese companies after some of its most advanced chips ended up with Huawei.