No. Like in any modern democratic country, it is legislature and not government defining what is legal.
I should clarify that this is not a law, rather a "government decision" (a la "executive order") on how to act on it's law. Forgive me, I'm not well versed in legal English, and the systems are quite different.