The mayor of New York City is now free to run for reelection without the encumbrance of a legal battle looming over him.

The 11-term lawmaker immediately relinquished his post as the top Democrat on the House Appropriations Subcommittee that oversees the Justice Department after his indictment last July.