The construction seems to be mixed, the two phrases—'congenial with his natural qualities' and 'congenial(in the sense of ' agreeable ') to him '—being both in Swift's mind.