El Salvador has rushed to approve an amendment that will keep it compliant with the terms of its $1.4 billion IMF loan.