Legislation that would require proof of U.S. citizenship for new voters has become a rallying cry for President Donald Trump.