Judge blocks indefinite detention of asylum seekers