Trump made the announcement at a NATO summit after Iran attacked bases hosting US forces in Kuwait and Bahrain.