Heritage from the Soviet Union... How did Ukraine get rid of 1,900 nuclear warheads?

Ukraine inherited a massive nuclear arsenal from the Soviet Union and gradually got rid of it through negotiations with Russia and the United States until the signing of the Budapest Memorandum in 1994.
Translated by Alqyas from Al-Rai — Original source
Al Arabiya.net – The Soviet Union experienced an economic slowdown during the 1970s, accompanied by a decline in the industrial and agricultural sectors, as well as a severe shortage of many basic commodities.
The arms race with the United States and the war in Afghanistan also drained Soviet resources. Upon Mikhail Gorbachev’s rise to power, new economic and social policies were implemented, which weakened the Communist Party and its authority, and contributed to the rise of separatist tendencies within the Soviet republics.
As the Eastern Bloc regimes collapsed, the crisis spread to the Soviet Union itself, which officially dissolved in late December 1991 following a wave of independence movements across several of its republics. In the aftermath, former Soviet states found nuclear weapons on their territories, raising international concerns about the future of these arsenals.
During the Cold War, the Soviet Union deployed nuclear warheads and intercontinental ballistic missiles (ICBMs) in several of its republics as part of a deterrence policy against the North Atlantic Treaty Organization (NATO). To protect these capabilities, missiles were placed in underground silos, while nuclear warheads were stored in fortified sites for use when needed.
When the Soviet Union collapsed at the end of 1991, Ukraine inherited a significant portion of this arsenal. Approximately 1,900 strategic nuclear warheads and 2,500 tactical nuclear warheads were located on its territory, along with nearly 176 intercontinental ballistic missiles, including SS-19 and SS-24 models, as well as around 44 strategic bombers.
Due to this military legacy, Ukraine became, after gaining independence, the holder of what was described as the world’s third-largest nuclear arsenal.
In 1992, the United States and Russia expressed concerns about the proliferation of nuclear weapons in some former Soviet states, and both affirmed their opposition to the emergence of new states possessing military nuclear arsenals.
In May of that same year, the United States, Russia, Ukraine, Belarus, and Kazakhstan signed the Lisbon Protocols, which stipulated the removal of nuclear weapons from the last three countries.
Following this, a gradual process began to transfer the tactical nuclear warheads located in Ukraine to Russia.
However, Kyiv later preferred to retain its nuclear arsenal and a number of its intercontinental ballistic missiles. At the same time, it demanded financial compensation and aid to assist in dismantling and transferring nuclear and missile weapons, while also seeking security guarantees.
Throughout 1993, Moscow and Washington intensified their negotiations with Kyiv, with discussions focusing on compensation and mechanisms for transferring the nuclear and missile arsenal to Russia.
In November of that year, the Ukrainian parliament announced its approval of the START I treaty and its rejection of the provisions outlined in the Lisbon Protocols.
On December 5, 1994, the United States, Britain, Russia, and Ukraine signed in the Hungarian capital what would later be known as the Budapest Memorandum.
In return, Ukraine officially agreed to remove nuclear weapons from its territory and join the Treaty on the Non-Proliferation of Nuclear Weapons.