A new bill providing powers for judges to punish offenders will be introduced to Parliament on Wednesday.