Trump had suggested the U.S. may consider leaving the trans-Atlantic alliance after NATO member countries ignored his call to help reopen the Strait of Hormuz.