Republicans secure redistricting advantage