A government cash injection has helped to create additional childcare spaces for schools.