Dudley Council may have secured nearly £4m from the government to boost town centres, support businesses and help people into work.