Hunter Biden agreed to plead guilty to tax-related misdemeanors, and entered into an agreement that would enable him to avoid prosecution on a felony gun charge.