Judge attacks 'absurd' terror policy