Off-grid hut owner wins fight to stay