Can I claim union dues from the past years because I didn't know I could claim them
You could amend past returns but be advised that the expense is a misc deduction on Sch A (so you have to itemize) and it is subject to a 2% AGI limitation so it may not help you.