Unions are among those reacting to Mayor de Blasio's warnings that the city could be in for heavy layoffs.