The legal decision is the fifth in four years to uphold the town’s approval process of what was initially a three-site development proposal from Pyramid for over 200 apartments and townhomes; a 160,000-square-foot warehouse-price club; and only recently, a $55 million 120,000-square-foot regional cancer center.