Federal prosecutors said he “chose allegiance to former President Donald Trump over the rule of law”.