The US Constitution prohibits this activity on the part of government officials.
Literally, the main reason for the US federal government to exist is to protect our rights.
Officials using their positions to infringe on our rights must be prosecuted.