On Aug. 27, when Randy Mastro sat before the City Council hoping to become the city’s top lawyer, the corporation counsel, there was excitement among the large crowd of prominent former government officials, judges and lawyers who packed the chamber ready to testify in support of his confirmation. But their excitement faded quickly.