Legislation that will put heavy restrictions on localities changing election rules and open up the possibility of lawsuits was signed by Gov. Ralph Northam on Wednesday.