Funding secured for social impact companies in Scotland