Ask Carter and Clinton. They also had domestic spying programs.
And if their programs violated the law then they should be prosecuted. I'm not saying that any president, regardless of party, is free to break the law. I'm saying all should be held to the law, regardless of party.