Federal court orders Tamil migrant to remain in custody