I do not believe that Putin approved these laws to avoid international sanctions (which were not going to be of any use either, since Putin has the economic and military support of other countries), in fact, Russia has not had too many problems economically speaking after starting the invasion of Ukraine. I'm more inclined to think that Putin passed these laws to deal a blow to Trump and his White House election campaign.
In reality, Putin is getting more of an advantage by passing these laws, since Trump has only made promises of what could happen. But what happens with Trump or Harris, and their subsequent actions related to cryptocurrencies, remains to be seen.
Having lived in Russia for over 12 years, I've witnessed firsthand the devastating impacts of the war and subsequent sanctions on the Russian economy. Hyperinflation, labor shortages, and a deteriorating quality of life have become the norm. Unfortunately, these severe consequences have yet to compel the Russian government to cease hostilities.
Given Russia's previous stance against crypto, I believe these recent policy shifts are a direct response to Western economic sanctions. While support from China may alleviate some pressures, it's unlikely to fully insulate Russia from economic decline. With the BRICS initiative also facing challenges, crypto appear to be a viable alternative for the nation at this juncture.