The measures, in place since a failed coup in 2016, saw tens of thousands arrested or fired from jobs.