Huawei Technologies Co Ltd’s planned deal with U.S. carrier AT&T Inc to sell its smartphones in the United States has collapsed at the eleventh hour, people with knowledge of the matter said, in a blow to the Chinese firm’s global ambitions.