Seven councils in Northern Ireland are set to benefit from more than £31m in European Union peace funding.