The law does not care whether or not an action is "fair" - which is a subjective evaluation, in any case. The law only cares whether an action is legal. Nothing that you have posted suggests that any action taken by your employer is illegal. Nothing in the law says that you cannot be demoted because of the actions of someone else - and I can think of a couple of situations where doing so would be both fair and appropriate.

