This is genius. If you assume that the Trump Administration did this to show their base that they're serious about deporting foreigners to garner election votes, then you can conclude that they've managed to do that with as much publicity as possible at virtually no cost financially.
It's likely they knew this would never go through and didn't want a knockdown drag-out fight in the courts. However, they still capitalized on a situation and should be congratulated for that, regardless of whether or not you agree with the politics.
I would hope that the DNC would learn this tactic and employ it equally as well in the future.