Lawyers for two of President Donald Trump’s foes who have been charged by the Justice Department are set to ask a federal judge Thursday to dismiss the cases against them, saying the prosecutor who secured the indictments was illegally installed in the role.