The measure is aimed at closing a loophole in a law that could let convicted traffickers get lighter sentences.