The president said Japan would be well-equipped for an attack from North Korea after buying equipment from the U.S.