Migrant children who wait in makeshift camps along the U.S.Mexico border for the Border Patrol to process them are in the agency’s custody and are subject to a longstanding courtsupervised agreement that set standards for their treatment, a judge ruled.