The bill would limit how independent, undeclared voters in New Hampshire can participate in state primary elections.