The study found that more than one-third of the taxes paid by undocumented immigrants fund government programs and services they are prohibited from using. In 2022, the most recent year for which data is available, they paid $25.7 billion in Social Security taxes, $6.4 billion in Medicare taxes, and $1.8 billion in unemployment insurance taxes.
Furthermore, the state and local tax rates paid by undocumented immigrants exceeded those of the 1% of highest-income households in 40 of 50 states.
There are ways to get IDs which arent as stringent. Theres also the ITIN:
This way they dont need to give a SSN. Legally everyone is required to pay and it might be held against them when trying to gain citizenship. Showing they paid their taxes can work in their favor in showing good moral character. Theres nothing legally that would explicitly help them it might be good for their case.
Source