Apparently this is what Obama did. I don't know what GW Bush did, probably the same thing. If you can't legally detain them because of a court order, there really aren't too many options except rapid deportation which so far DOJ hasn't figured out how to do.