Republicans have advanced legislation to require documentary proof of citizenship to register for federal elections and a nationwide photo ID.