Joe Biden has commuted the sentences of almost 2,500 people convicted of nonviolent drug offenses, setting a presidential record.