A settlement reached on 829-unit development at 840 and 940 Main St. E. in Cambridge, allowing for 1,188-unit project, reshaping city landscape.