A 1986 immigration law signed by President Ronald Reagan casts a long shadow over the current immigration reform debate. Opponents of today’s immigration bill say that law gave away the farm -- it granted amnesty and failed to button down the border -- and they don’t want to see history repeat itself.

This was the main argument from Sen. Ted Cruz, R-Texas, in a Fox News interview. On the day a key amendment passed a crucial Senate vote, Cruz warned that the bill "has immediate legalization ... and the border security is sometime in the future, and just like in 1986, it's designed never to come into being."

Cruz and the Senate Republican leadership say the border must be able to keep people out before those who are here without documents are given any path to legal status. To do otherwise, they argue, would only invite a flood of unauthorized immigration.

We’ll examine both parts of Cruz’s statement. Does legalization come before the border is secure? And is border security treated as it was in the 1986 law and "designed to never come to pass"?

Defining legalization

The matter of when legalization happens is relatively easy to resolve, although we found two different meanings to the word. For some, such as Cruz, it means any formal status that allows a person to stay and work in the U.S., even temporarily. For others, it means permanent legal residency, often referred to as a green card.

The Senate bill, grants what it calls "registered provisional immigrant" status, or RPI. This is not a green card granting permanent legal status; but it does mean a person has passed a criminal record check, paid a fine, and met other requirements. With provisional status, a person can stay and work for at least six years. However, under an amendment crafted by John Hoeven, R-N.D., and Bob Corker, R- Tenn., no one can apply for that until the Department of Homeland Security puts together and launches a border control plan (formally called the Comprehensive Southern Border Security Strategy and the Southern Border Fencing Strategy). There’s also a similar status for agricultural workers called a blue card.

Is either status legalization? Cruz would certainly say yes. More important, so does the nonpartisan Congressional Budget Office, the analytic arm of Congress. The CBO’s assessment of the Border Security, Economic Opportunity, and Immigration Modernization Act, the bill’s formal title, tallies the number of people expected to qualify under the new rules. In one table, it lists legalization programs and under that are the provisional status (RPI) and the blue card.

We checked with the CBO and there is no mistake. The provisional status and the blue card are legalization in the eyes of the CBO. We also contacted the Migration Policy Institute, a group that studies population movements worldwide. The institute defines legalization the same way as the CBO. Supporters of immigration reform often focus on the rules and timing for getting a green card and consider that to be legalization, but the CBO definition carries great weight in this debate.

Getting back to the bill, a border security plan must be underway before people can begin to apply, but that security plan need not be completed. The CBO estimates the application process wouldn’t begin until sometime in fiscal year 2015, but it would come before all border tightening measures are in place.

Hardening the border

If Cruz had stopped with legalization, he would have been on more solid ground, but he went further and said the Senate bill neglects border security. He said it was like the 1986 reform act, and he went so far as to say it was "designed" to lead to nowhere.

We asked Cruz’s office for specific supporting evidence. Spokeswoman Catherine Frazier noted several deficiencies in the Hoeven-Corker amendment, including that it fails to require a biometric system -- such as a retina scan -- for monitoring people as they enter and leave the country. But even more fundamental is the timing in the legislation.

"The border security assets required by the amendment have to be in place 10 years in the future before illegal immigrants can obtain green cards," Frazier said. "Meaning border security does not have to happen if an administration does not care about giving them green cards… and just leaving them as RPIs in perpetuity.

"There is no guarantee in this bill that the border will ever be secured, so we essentially have a bill that offers legalization and little else." Frazier said.

The CBO analyzed the Hoeven-Corker amendment, which has become the latest version of the bill. The report said, "The proposed amendment would appropriate $46.3 billion for expenses related to the security of the southern U.S. border and initial administrative costs." About $30 billion would go to hire at least 19,200 additional border patrol agents; close to $8 billion would go to building a fence along the border.

There is an important verb in that sentence from the CBO. It is "appropriate." Congress controls the purse strings on government spending. The smallest step it can take is to authorize money. Authorized dollars mean little until Congress takes the real step and appropriates the money. Appropriations, on the other hand, are actual dollars that are there for an agency to spend.

The Senate bill appropriates over $46 billion to beef up border security. The time frame for most of the spending is 2014 to 2018.

Cruz said this is "just like 1986." We looked at the 1986 Immigration Control and Reform Act. When it comes to border security, it only authorized spending. The current bill both authorizes and actually appropriates spending for border security. It sets aside a designated pot of money -- the Comprehensive Immigration Reform Trust Fund -- and it puts $46.3 billion into it by Oct. 1, 2013.

Taking note of the sequence of events, if the bill becomes law, the agencies start spending money on agents and other measures immediately.

The bill sets many goals for border enforcement. Beyond the new patrol agents, it adds 350 miles of fencing and creates an entry/exit system to track not just when people enter the country but when they leave. It requires all employers to use an employment verification system.

Our ruling

Cruz said the Senate immigration bill offers immediate legalization of unauthorized immigrants and that it indefinitely defers action on border security. Cruz said this bill was just like the major reform bill in 1986.

On legalization, the process would not be immediate, but as the CBO uses the term, it would come before the border is fully secured. Proponents of the bill refer to this as "provisional" status. By and large, immigrants could not apply to receive permanent legalized status until border security meets certain benchmarks.

The Senate measure also appropriates more than $46 billion for border security and makes that money available immediately. So Cruz is wrong to say the security measures are designed "never to come into being."

Cruz was reasonably accurate on legalization but was way off the mark on the bill’s border security being "designed never to come into being." We rate his statement Mostly False.

Editor's note: This item has been updated to include additional comments we received from Cruz's office after our initial publication.