The Democrats have elected Tom Perez, Obama’s Labor Secretary, to lead the Democratic National Committee.