FBI Director Christopher Wray defends agency