Judge to look into deported migrant flights