In these cases, italics are used for emphasis, showing the focus word of the thought group. It’s necessary because the primary stress has shifted to a word that wouldn’t normally have it.
BTW, in the first sentence, “had” is not an auxiliary. It’s the main verb of the subordinate clause. English is a little confusing because it allows the non-modal auxiliaries also to function as main verbs in their own right.