No recent U.S. President wanted to pull out of NATO. The Clinton campaign falsely claimed that Trump did, but he just wanted other countries to pay the agreed upon 2% commitment. And it looks like it worked.
https://www.factcheck.org/2016/05/whats-trumps-position-on-n...
https://www.nato.int/nato_static_fl2014/assets/pdf/2022/3/pd...