Crossing statelines

How can a court in one state rule what another state does? I’m not completely sure as to an answer to this question but that seems to be what the 9th circuit court in San Francisco is trying to do to the state of Idaho
The biggest thing that really tans my hide over this is, when did us Americans become so high n mighty that we actually tell men of God no matter the religion that if they go against their beliefs that they will pay by spending time in jail? I would really like somebody to explain this to me because I just don’t understand. I am a Christian and I believe in my faith, how can we as “american people” start treating our own kind like criminals!!!