Primaries set stage for state Legislature election