Do you also have a problem with illegal wire tapping if as a result a terrorist attack is prevented? Or paying money to an informant (possibly an insider) to uncover drug traffickers?
Dear downvoters, cool down. The question targeted the fact that most people do accept illegal acquisition of information as long as they agree with the purpose, but strongly object breaking the law if they do not support the purpose, like forcing people to pay taxes.