Lincoln Project ad targeted at government agents who are following illegal orders from the Trump Administration:
https://www.youtube.com/watch?v=xVUcb9lQBh8
It is well-established in US law that it is no excuse that you were "just following orders". Not when you're violating human rights.
You have a *legal responsibility* to refuse -- and resign, if necessary -- rather than follow an illegal order.