Bismihi ta'ala
In fiqh, the religious director or an Islamic centre, or the Imām of the mosque is referred to as Imām al-Rātib, and his role is important in managing the religious affairs of the mosque. He can receive a regular income for his various services, like lectures, counseling, religious management, etc.
It is problematic for the religious scholar to receive any financial benefit from doing something wajib or teaching something wajib, and even for jamā'ah prayer itself. It is not befitting for talib al-'ilm to be paid for leading prayers in itself, but he can receive salary for the preliminaries for these things, like travelling expenses, rent, and so on.
Indeed, the more financially stable the religious scholar is the more effective he will be in serving his community.
And Allah knows best.