Justice Secretary Shabana Mahmood announced plans to introduce legislation to block the changes