The first phase of a multi-million pound regeneration of a former mining community has been approved.