Is it legal to have some of the job responsibilities of a position delegated to you after you were told you were not qualified for the position?
Yes, it is legal. However, it may violate any employment contract or union contract that governs your current role. You should also think about whether you want to stay in this role.