Wray’s comments in his first public appearance before Congress since the deadly Capitol attack two months ago amounted to the FBI’s most vigorous defense against the suggestion that it had not adequately communicated to police agencies that there was a distinct possibility of violence.