Donald Trump keeps threatening to withdraw from the alliance but actually doing so would present major challenges