The OP's case would be government estopple ... ie you followed a direction of an authority and was punished for doing so. Now, all you have is your word for it but if you contact other people in the same boat then perhaps you/them can testify in each other's cases. That would help.
I don't know if you would win but it is a defense to offer.

