The IMF immediately told them that they would no longer be elligible for any IMF loans or financial transactions until they sold all Bitcoin they owned and rolled back the Bitcoin legislation. And the kicker, El Salvador bought and held XX million dollars worth of Bitcoin (last I checked), while their GDP was XX,XXX million dollars, and the loans that they roll were for X,XXX dollars.
There aren't many other players at nation state level like the IMF... so they can exert a lot of pressure on monetary policy. If you want another example, look at how the IMF dealt with Greece.