As long as they can claim that whatever they did to you is part of their official duties (which, again, good luck expecting the current federal government to take your side on this even if the ICE officer clearly oversteps their duties) only the federal government/DOJ can prosecute them for misconduct, which also obviously won't happen under the current administration.