President Trump, who values loyalty, has at times tried to distance himself from his administration’s own actions when they become politically toxic.