Republican Sen. Rand Paul of Kentucky. Reuters The Senate on Wednesday voted down legislation to repeal major parts of the Affordable Care Act without an immediate replacement.

The legislation needed a simple majority to pass. It didn't succeed, as seven Republican senators voted against the plan along with all Democrats. In total, 45 senators voted in favor and 55 against.

The bill, the Obamacare Repeal Reconciliation Act, was introduced on Tuesday into the healthcare debate by Sen. Rand Paul of Kentucky, who has been a proponent of a straight repeal of the ACA, better known as Obamacare.

Here's what was in the Obamacare Repeal Reconciliation Act:

It was nearly identical to the bill President Barack Obama vetoed in 2015.

The legislation would have repealed all the provisions put in place by the ACA, including key taxes and tax credits.

It would have also repealed the Medicaid expansion that some states opted into.

Like the so-called skinny repeal plan gaining traction in the Senate, it would have gotten rid of mandates for employers to provide health insurance and individuals to have it.

The legislation would have prevented Medicaid from funding Planned Parenthood for a year and wouldn't have allowed premium tax credits to fund abortions. Including those sections in the bill would have required 60 votes to avoid a filibuster, according to the Senate parliamentarian.

The repeal would have begun in two years.

According to the nonpartisan Congressional Budget Office, 17 million more Americans would have been uninsured in 2018 if such a plan had become law, a number that would increase to 32 million by 2026. Health insurance premiums were expected to have doubled by 2026, and cuts to Medicaid would have hit $842 billion.