Two halls which provide support for the community in Mid Ulster have received combined funding totalling £40,000.