Contrary to popular belief, Marijuana is not "Federally Illegal", it is simply Federally Regulated.
Here is the Registration
https://www.federalregister.gov/documen ... -marijuana
Religious Marijuana use has a separate process specifically created for Religious exemptions to the controlled Substances act. You can find that by simply googling "DEA RFRA".