Unions, parties blast move to sack department heads