Jewish philanthropist will retain renowned Austrian artist's piece after reaching agreement with family who said it was sold under duress due to Nazi persecution in pre-war Europe