A New Jersey school district that tried to void the sale of a surplus school building after learning a charter school was taking it over has been ordered to pay $768,487 in damages.