President Trump is moving to ban American companies from building data centers overseas, a sweeping proposal aimed at keeping the rapidly expanding artificial intelligence industry and its economic benefits within the U.S.