in the US, non citizens very often get social security cards so they can have a work permit. this applies to illegal immigrants as well.
https://www.ssa.gov/people/immigrants/
most states allow you to register to vote by simply showing a social security card.