A thriving north-east town is set for expansion after a £28 million deal to build dozens of new homes was approved.