Well, they're not both laws. One is a religious belief and one is a law.
I personally believe that indoctrinating women to cover themselves from head for fear of being objectified is childish and stupid, but it's obviously a freedom and a choice that should be protected nonetheless.
At the very least it shouldn't be punishable.