It was an explicit decision by both CIS and UN. Russia took USSR's seat on UNSC two weeks after USSR was dissolved, and that happened in 1991. Budapest Memorandum was negotiated 3 years later, by which time this was already a firmly established thing.