Slavery was legal. Abolitionists broke the law.
Women voting was illegal. Women voted, breaking the law.
When the law is wrong, then we must beak the law.
The NSA says surveillance is legal, but we have a right to privacy. Our right to privacy is an inherent right. It cannot be taken away from us. That means that we have the right to block surveillance in order to protect our privacy.