If it's for medical use and you're all registered as a patient, it's now technically legal under local and state laws, but illegal under federal law.
TL;DR the laws are a mess and if the FBI catches you, you're still pretty screwed. We need to work on reforming the laws at a federal level, since that overrides all lower laws. It'd be at least cool to have the federal law just refuse to say one way or the other on marijuana, so that states could decide what is right for them.
I think you may be incorrect.
In any case, the 1937 bill created an impossible-to-satisfy tax structure, because they knew that a direct prohibition would have been deemed unconstitutional. Unfortunately, by 1970, everyone had forgotten and the Controlled Substances Act passed easily.
The history behind how New York's marijuana decriminalization and this loophole came to pass, especially in contrast to the Rockefeller drug laws, is actually a rather fascinating example of the sheer racial/socioeconomic hypocrisy within US drug laws.