Illegal immigration is different because often the entire family commits the crime together. Further an irregular border crossing is a misdemeanor not a Felony. We don’t take kids away from parents for misdemeanors.
But even if you ignored the cruel and unusual punishment aspects - deporting the children separately is unforgivable. In some cases they didn’t even bother to record the family connection before separating them.