That would be the case even if the job was obtained through forged or stolen documents, The Washington Times said,
Sen. John Ensign, R-Nev., calling it an act of amnesty, tried to strip the Social Security provision from the immigration reform bill but narrowly lost 50-49.
"We all know that millions of undocumented immigrants pay Social Security and Medicare taxes for years and sometimes decades while they work to contribute to our economy," said Sen. John McCain, R-Ariz.
The Senate also reversed an earlier stand by voting to allow foreign workers to apply for permanent residency without having a job lined up.
Notable deaths of 2014 [PHOTOS]