For an overview of U.S. Election Law, see the Law Library of Congress' research guide
ICPSR is a preeminent source for social and behavioral research data. You can search by full research question or by keywords. Many datasets require the use data management software. Here is an introduction to SAS, which is an option for downloading ICPSR data.