Zoning board clears way for sale of former school