Pesky 14th amendment says
If you pass a law that protects US citizens from their government, then it will also protect non-citizens. There is no constitutional way to differentiate between the two.
Either you have spies, or you don't. There is no such thing as a tame spy.