The government has granted £25m to micro-renewables projects over the past two years, helping 4,600 homes and 739 businesses and schools generate green energy.