I'm Iranian and I'm very pissed off about the regime abusing the the technology, however, I can't put all the blame on the US government. A lot of the tracking/wiretapping tech (well, virtually any technology) have dual uses. For example, if a family member of mine gets kidnapped I'd like the police to be able to locate him/her easily by tracking a cellphone. Or if a bunch of suspects are doing something against the law and there's justified need to tap their phones and/or internet I'd like the police to be able to obtain a warrant and have access to the technology to do their job. So it's not funding the development of technology or requiring it's inclusion in the products that is the problem.
Now, if the US had the ability to prevent the regime from accessing the tech and they didn't do anything about it, well, that's not really nice.