Terrorists and child rapists will no longer be released automatically half-way through their sentence under measures in the Criminal Justice and Courts Act, which received royal assent last week, lord chancellor Chris Grayling announced.