In the petition, R. Kelly’s lawyer argues that the musician was wrongly retroactively prosecuted under a federal law.