The building trades unions scored a big win, and Comcast, the city's largest company, failed to win over lawmakers.