I've felt for a long time that laws should have an attached "intent" section and one function of the courts should be to invalidate laws which, after a period of being in place and some analysis, fail to achieve their stated intent.

I think it would be good for democracy if lawmakers had to put in writing what the law is supposed to accomplish AND if that were something legally binding.