Lawyers for the bankrupt and shuttered Hahnemann University Hospital have reached an agreement with former owner Joel Freedman, his lenders, and other creditors on how proceeds from the eventual sale of the North Broad Street properties will be split.