In the landmark case of Employment Division v. Smith (1990), the Supreme Court ruled on the balance between religious freedom and state law. The case involved two Native American men who were fired from their jobs for using peyote, a substance illegal in Oregon, during a religious ceremony. They sought unemployment benefits, claiming their dismissal was due to their religious practices. The Court had to determine whether a state could deny unemployment benefits based on the use of an illegal substance for religious purposes. Which of the following statements best describes the ruling of the Supreme Court in this case?