Building workers voted to authorize a strike, raising the prospect of widespread service disruptions across the city.