To say that God is to be blamed for anything is not the same as to say that he causes all things. God is not like us, and does not operate on our level.
I suppose it would be worth my time to read some Hebrew experts on a more literal translation, or on some of the nuances of the text there, since this has come up before and no doubt will again, but can't do it today. I do know that often when people say, "it means what it says", they think it means what THEY think it says. I'm sorry for the facile answer that it could mean that it would never enter his mind to command such a thing.
I agree with Einstein who in his usual logical fashion said, "God does not play dice with the universe", and I can also sympathize with Hawking who is said to have retorted, "Who are you to tell God what he can do?" In appearance to most humans, naturalism answers all questions, except the very early ones, and the promises of the modern scientific community want to suggest that mere chance determines outcomes, but that is simply logical nonsense --the fact that we don't know the causes does not mean that anything happens by chance. In fact, if virtual particles approach the most basic building blocks of matter and energy yet can no be found to have causes for their [apparent] "popping in and out of existence" it might suggest that God is actively and directly causing them to do so, and not "chance" after all. I say all that to point out that when we consider what God does or does not, by the logic of the law of causality, we really don't know enough to blame God for the tragedies and sin of this life, yet we can certainly ascribe to him fairness and justice. That does not imply then that he has no control, or never planned for them to happen nor that they even could happen if he had not planned for them to do so.