If journalists say that the authorities slap something such as a tax or a ban on something, they think it is unreasonable or put on without careful thought.
If you describe something that someone does as a slap in the face, you mean that it shocks or upsets you because it shows that they do not support you or respect you.