Director Christopher Wray testified before the Senate and defended the bureau’s treatment of protesters.