to congratulate himself for having the guts to confront it 
(ROOT (S (VP (TO to) (VP (VB congratulate) (NP (PRP himself)) (PP (IN for) (S (VP (VBG having) (NP (NP (DT the) (NNS guts)) (SBAR (S (VP (TO to) (VP (VB confront) (NP (PRP it))))))))))))))
(ROOT (S (VP (TO ) (VP (VB ) (NP (PRP )) (PP (IN ) (S (VP (VBG ) (NP (NP (DT ) (NNS )) (SBAR (S (VP (TO ) (VP (VB ) (NP (PRP ))))))))))))))