Residents whose home were at risk have celebrated the decision.