A number of historic churches in Northern Ireland will receive a funding boost to tackle urgent repairs.