Summit Properties USA won an auction on Friday to buy more than 5,000 apartments out of bankruptcy from the Pinnacle Group despite City Hall’s efforts to intervene.