Internal Documents Show How Close the F.B.I. Came to Deploying Spyware Christopher Wray, the F.B.I.’s director, told Congress last December that the bureau purchased the phone hacking tool Pegasus for research purposes.