It will be permissible to spend the money taken for using the sedan chair on the necessities of the masjid. Moreover, this tradition cannot be specifically ascribed to Hinduism, since the sedan chair was used to carry the wives of the Holy Prophet ﷺ on the day of their wedding and on other occasions.
And Allah knows best.