FBI Director Christopher Wray offered a spirited defense of his agency before Congress.