Donald Trump postponed an executive order on artificial intelligence, saying he did not want new rules to weaken the United States in its technology competition with China.