The president said AI would make the U.S. stronger but that it also posed a national security risk without government oversight.