Thousands of people could be contacted and asked which way they meant to vote in last week's election under a landmark legal challenge.