NSA killed system that sifted phone data legally