President Donald Trump suggested the U.S. might move away from its commitment to defend NATO allies, criticizing them for not supporting the war in Iran.