Funding for a GP surgery has been approved for a town development where people have been living without one for 16 years.