The move preserves Republican gains in several districts.