New lease of life for hundreds of council homes