A pensioner who faced having to tear down her fence after putting her life-savings into it has won the right to keep it on appeal.