Moreover, I gave them statutes that were not good and rules by which they could not have life,
Here God announces that he had taken vengeance upon people so hard and obstinate, by permitting them to endure another yoke, since they would not be ruled by the doctrine of the law; for we saw that, when God imposed the law upon the Israelites, they would have been extremely happy, had they only considered how honorable it was to be in covenant with God...
The history of the struggle between the sins of Israel, by which they endeavoured to ruin themselves, and the mercies of God, by which he endeavoured to save them and make them happy, is here continued: and the instances of that struggle in these verses have reference to what passed between God and them in the wilderness, in which God honoured himself and they shamed themselves.
Commenting on Ezekiel 20:10-26
Wherefore I gave them also statutes that were not good,.... Yea, were very bad; not the moral law, and the statutes of it; for that is holy, just, and good, though the killing letter and ministration of condemnation and death to the transgressors of it; indeed those laws were both good and bad to different persons, as Abendana observes; good to those that observed them...