Cross-border addiction services in Northern Ireland and the Republic of Ireland have been awarded £12.4m peace funding.