Judge quashes anti-terror orders