Yes. , there was no mistake. This guy was determined by the immigration courts and the appeals courts (with a lawyer, full due process, etc) to be in the US illegally, and to be a member of MS-13. He was given a lawful final deportation order in 2019. When he was given his final deportation order he whined to the Court, that as a gangbanger himself, he was scared of a rival gang killing him if he went back to El Salvado. The court did him a favor and issued an 'order of withholding' which limits his deportation order to any country other than El Salvador. HOWEVER, after this order, MS-13 was declared a designated terrorist organization and members of such groups are not eligible for this dispensation. At the point when MS-13 was so declared (back in Febuary), the order of withholding was invalidated, as members of that group (as he was judicially adjudicated to be) are not eligible for this 'favor' in withholding.
Nothing was improper in his deportation. He was sent back to his country of origin/citizenship, and his own government is holding him there in prison for crimes he committed there. We basically extradited him to El Salvador, essentially. All the drama is made up manufactured outrage by the TDS judge and media.