Argentina's Congress on Wednesday passed a law preventing the early release of inmates convicted of human rights crimes committed during their country's 1976-1983 military dictatorship.
The final vote by all 56 senators present moves to counter a controversial Supreme Court ruling last week allowing those convicted of such crimes to have their terms trimmed by twice the amount of time they spent in custody awaiting trial.
The bill passed the lower chamber of Congress on Tuesday with a vote of 211 to 1.
President Mauricio Macri, who must now promulgate the law, said just before the vote that he was "against any tool that helps impunity, especially when it comes to crimes against humanity."
The law's passage came just ahead of a march on the Supreme Court on Wednesday organized by human rights groups protesting its ruling.
Interim Senate leader Federico Pinedo said the rapid vote "is a very clear message to society and to the judges what is the position of the Argentine people."
The Supreme Court ruling -- adopted in a three-to-two vote by the court's justices -- upheld a law dating back two decades that allowed the shortening of offenders' sentences, with each day served in pre-trial detention counted as two days.
That calculation was applied earlier this month to the 13-year sentence of an ex-paramilitary fighter convicted in 2011 for crimes including torture and kidnapping.
But a court in the western city of San Juan on Tuesday refused to apply it in another case, calling it "unconstitutional and inapplicable."
The Supreme Court's decision opened the doors to a thousand people who have been convicted and another thousand being held pending outcomes of trials asking for early release.
Several inmates incarcerated for crimes committed during the dictatorship had already requested shortened sentences.