I’m not a lawyer, but the answer seems fairly simple.
There needs to be a temporary cessation of the law - a moratorium - so that these kids can be loaded onto busses or military planes and returned to whatever country they came from, immediately after entering the U.S.
That’s they only way a message can be sent to others that there’s no point in making the trip in the first place.
Fly in provisions for the children in their own countries and pay for their care by their own government.