Tough situation.
If you want to stand up for yourself you could go over your boss's head. Risky, could get you fired immediately, but could get your boss fired/disciplined and save your position.
You could consult with a lawyer for advice...
The safest thing to do is go with the flow and quit (finding a new job first if possible). But just because something is safe doesn't mean it's the right way to go...