The separation of thousands of families "represents one of the most shameful chapters in the history of our country," U.S. District Judge Dana Sabraw said moments before approving a settlement between the Justice Department and families represented by the American Civil Liberties Union that ended a legal challenge nearly seven years after it was filed.