The new legislation will lift a £1,000 cap on the penalty that courts can impose in dog attack cases.