The U.S. Senate voted Thursday to repeal the core of Obamacare, bringing Congress closer to sending legislation to President Barack Obama for the first time that would dismantle his signature domestic achievement.

Congressional Republicans won't succeed in undoing the Affordable Care Act, though, because the president has said he would veto the measure and Democrats in Congress have the votes to block an override. Senators voted 52-47 to pass the legislation. The House has passed a similar bill, and differences between the two must be resolved before the legislation can go to the president.

Both bills also would deny federal funding for Planned Parenthood, the reproductive health care organization that has faced criticism by Republicans since undercover videos purported to show its officials discussing reimbursement for providing tissue from aborted fetuses to researchers. Three people were killed in a Nov. 27 shooting at a Planned Parenthood clinic in Colorado Springs, Colorado.