Since the Bible tells us to respect government authority, is there ever a time when we can go against laws?
In Romans we read this:
While we are commanded to respect the government as an extension of God’s authority in our lives, at times the government may ask us to violate our responsibilities to obey the Lord and His word. When a Christian faces such a circumstance, we continue to submit to the government once again, but only in the sense that we submit to the government's authority to punish us for resisting its laws. Any resulting persecution is God-ordained and should be accepted joyfully:
For example, if the law required us to participate in sinful behavior, we are not free to sin and therefore we are not free to obey that law and must disobey it. Nevertheless, the government still has authority over us, so we should expect it to bring charges and penalties under the law, which we must submit to willingly.
Remember, the Lord is sovereignly orchestrating all these events. He has permitted the government to pass unrighteous laws. He has permitted the government to come against His children and persecute them when they disobey. He has commanded us to remain faithful to Him, and, therefore, He is using all these circumstances to glorify Himself by our suffering. He is using all these things for good purposes.
For a longer, in-depth teaching on this principle, we recommend you listen to our Romans Bible study, Lesson 12B.