There is a Biblical precedent for civil disobedience.
Shadrach, Meshach, and Abednego's refused to worship an idol in Daniel 3.
The Israelites' openly rebelled against the government of Egypt in the book of Exodus.
In Acts 5, Peter teaches despite being commanded otherwise by the civil authority.
Civil Disobedience Prohibited
There is also a Biblical precedent for obeying a country's laws regardless of whether the laws are good or not.
Ecclesiastes 8 says to obey the king's command.
Jesus says to pay taxes in Luke 20.
Paul instructs believers to obey the laws of their country in Romans 13.