Federal officials may be prosecuted if they “acted beyond the scope of their duties, violated federal law, or behaved in an egregious or unwarranted manner,” Bryna Godar, an attorney at the State Democracy Research Institute at the University of Wisconsin Law School, wrote in a brief explainer.