Government has confirmed sweeping changes to the early release prisoner scheme.