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.
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.
All decriminalization is not alike. In New York, for example, decriminalization is in in name only, because police can easily exploit a loophole that allows them to charge people with possession of more than an ounce (criminal) even if they only have a few grams (not criminal). Because of this, New York City arrests more people (per-capita and in total) than any other city in the entire world. Compare to the Netherlands, which also has 'only' decriminalized marijuana.