China threatened retaliation after U.S. President Donald Trump signed legislation on Wednesday calling for sanctions over the repression of China’s Uighurs, as excerpts from a book by his former national security adviser alleged he had approved of their mass detention.