Anti-terror law ‘sinister’ says judge