Council set to buy back homes