O'Hanlon, Hugh Marmaduke, Counsel to the Irish Office