Under a law passed in 2023, a US president cannot exit the alliance without the consent of US Senate.