Generally speaking, union dues are not a "pretax" item. Take a look at a paycheck stub to be sure.
If they are "pretax," you can not deduct them, as pretax items are already not taxed, and to do so would be double-dipping.
However, if they are not pretax, you may deduct them as job expenses.