Any drug offense, even a low level marijuana one has potential immigration consequences. Because of your situation, it's worth it to consult a criminal defense attorney in your area to represent you and see if there is an alternative to a conviction they can work out - a diversion program, deferred entry of judgment, etc.
Because the immigration issue is federal, you want to be careful. Feds don't recognize CA med mj immunity. Get a new card. Take it to your arraignment. You may be able to get the charge dismissed.
Edward J. Blum