The federal law is BS in both cases.It is a violation of federal law to purchase untaxed weed.
A tax they will not let you pay (just like post '86 machine guns).
So, there is no such thing in the US as a lawful user of marijuana.
Just because you are complying with state law doesn't mean you aren't breaking federal law.