The president has repeatedly maligned the Cold War-era alliance, even suggesting the pact is obsolete.