Double jeopardy in the US means being prosecuted for the exact same crime more than once. It does not, however, prevent being prosecuted for similar or related crimes.
For instance, when local white juries would acquit white defendants in for lynching black people in the South, the federal government could (and did) try them again for the crime of violating the victim's civil rights. Same set of facts, but different crime. Not double jeopardy because they were being prosecuted for a different crime.
That doesn't work for legislation, because defining when a law is "the same" is basically impossible. If I change one word, is it the same? What if I "ship of Theseus" the law? At what point is it a different law?
Many legislatures ban members from repeatedly bring the same bill in the same session, which does require a similar determination. But that's a much weaker prohibition (even if the determination was wrong, you can always bring the law for a vote next year), and it is a necessary limitation to allow the legislature to get other work done without having members clog the process by bringing the same bill for a vote over and over again.