The Trump loyalist was narrowly approved as Republicans brushed aside concerns about his conduct as a senior Justice Department official.