Developer wins appeal for homes on land used for grazing horses