Rory McIlroy was overcome by emotion after claiming a title that drew him level with one of his heroes, further cementing his legacy.