A recent surge of A.I.-related imports has become an impediment to the smaller trade deficit President Trump wants.