US judge lets Afghanistan detainees' habeas challenge proceed