Settlement reached on contested sale of gifted school buildi