“A new law” is the basis for Double Jeopardy. That’s why they call it ‘time served’. And not ‘time served until they pass a new law’.
That "new law" was on the books when they were convicted. And the appeals court ruled they should have been sentenced under that.