A pilot scheme which has seen action taken against dangerous drivers is being expanded across Wales.