28 homes coming to Wiltshire town after deal more than three decades in the making secured