Lawsuit comes weeks before midterm elections and follows debunked claims of noncitizens voting in various states.