The confirmation of Clayton ends the tenure of Bill Pulte, a housing official and Trump loyalist, who held the role for more than a month.