The government has approved funding of £127m for 47 councils to build 2,000 social homes on 205 sites across the country.