The agreement ends four years of legal wrangling among some of the biggest names in Boston real estate that was acrimonious even by the standards of business litigation.