A 289-unit apartment building next to Woburn’s commuter rail station has sold for $131 million to a New York real estate investment firm and subsequently rebranded.