Mr. Wray’s ability to protect the F.B.I.’s independence will be examined because of President Trump’s repeated interjections into criminal justice matters.