Judge ends court oversight of migrant children