(CNN) -- After a residency dispute, former Olympian Carl Lewis is officially back on the ballot in a New Jersey state senate race, according to a federal appeals court.
New Jersey Lt. Gov. and Secretary of State Kim Guadagno ruled in April that Lewis was ineligible for the race because he failed to meet state residency requirements.
But on Tuesday, the appellate court reversed a district court's judgment.
In the reversal, Circuit Judge Thomas L. Ambro of the U.S. Court of Appeals said, "The State has failed to demonstrate a compelling state interest in the application of this durational residency requirement to this particular candidate."
Lewis, a nine-time Olympic gold medal winner in track, is running as a Democrat for the state senate seat in the 8th Legislative District of New Jersey against Republican state Sen. Dawn Addiego.