US President Donald Trump warned US tech companies will face “a tremendous tax” if they build AI data centres abroad.