“Mr. de Blasio said he was blindsided and angered by the developments. But a review of city records, correspondence and lobbying reports suggests that the city mismanaged the situation, accepting more than $16 million to pave the way for precisely the type of luxury housing it has sought to limit.”