Ronna McDaniel won a fourth two-year term to lead the Republican National Committee, fending off a fierce challenge after the party’s poor midterm showing.