If the union fees are an ordinary and necessary expense for your self-employed business then you can deduct them as a business expense.
If they are related to your work as an employee, you cannot deduct them as a business expense even if you are self-employed.