The judge said the separation of families ’represents one of the most shameful chapters in the history of our country.’