The Budapest Accords signed by Russia included a provision saying that neither country would interfere in the internal politics or economy of the other. There was no carve out for "we don't like that you got rid of our puppet".
Literally nothing Ukraine did justified a Russian invasion in 2014 or 2022 under the agreements that Russia itself signed.