In a surprising turn of events, Republican presidential candidate Sen. Ted Cruz will be enrolling in the Affordable Care healthcare plans.

The Texas senator, a Tea Party sweetheart, has come out against President Barack Obama's signature healthcare reform act.

Speaking with CNN's Dana Bash on Tuesday, Sen. Cruz said he and his family will be enrolling in Obamacare since his wife Heidi Cruz has taken a leave of absence from her job at Goldman Sachs.

Bloomberg reported earlier this month that Heidi would take an unpaid leave of absence from her managing director position in Houston to help her husband during his campaign. The financial giant, through Mrs. Cruz's plan, paid for the family's healthcare, including the senator's. The family has now turned to Obamacare.

"We'll be getting new health insurance and we'll presumably do it through my job with the Senate, and so we'll be on the federal exchange with millions of others on the federal exchange," Sen. Cruz told Bash.

Sen. Cruz has the option of accepting government contribution available to legislators, as part of the ACA, but the senator said he will "follow the text of the law."

"I strongly oppose the exemption that President Obama illegally put in place for members of Congress because [Senate Minority Leader] Harry Reid and the Senate Democrats didn't want to be under the same rules as the American people," Cruz explained.

The ACA requires lawmakers to use the D.C Health Link Small Business Market, according to the Office of Personnel Management, but legislators and some staffers can receive a "government contribution," which Sen. Cruz is not accepting.

Sen. Cruz has been one of Obamacare's staunchest opponents. During his speech at Liberty University on Monday announcing his intention to run for the GOP nomination for president, the Texas senator said he planned to repeal the healthcare reform law.

According to CNN, Sen. Cruz sees the law as more damaging, claiming it has cost millions of jobs as it has "forced millions of people into part time work."

"It has caused millions of people to lose their insurance, to lose their doctors and to face skyrocketing insurance premiums. That is unacceptable," he said on CNN.

Earlier this month, Sen. Cruz proposed a bill to replace Obamacare, according to The Hill. Called the Health Care Choices Act, the bill is the most detailed Republican replacement for the ACA, which could be dismantled by the U.S. Supreme Court.

The bill calls for the abolishment of ACA's Title I, doing away with the mandate to buy insurance, the marketplace and the tax subsidies designed to help pay for the insurance. The bill also would allow people to buy insurance across state borders.