The hearing further solidified the expectation that the secretary, Alejandro N. Mayorkas, will continue to hear threats of impeachment if the G.O.P. wins the majority in the House.