Redundant council building to provide 31 homes