Federal prosecutors are pursuing a criminal investigation of China’s Huawei Technologies Co. for allegedly stealing trade secrets from U.S. business partners, including the technology behind a robotic device called “Tappy” that T-Mobile US Inc. used to test smartphones, according to people familiar with the matter.