In two separate hearings, the F.B.I. director and Pentagon officials answered questions about the failure to adequately prepare for and respond to the Jan. 6 attack.