WASHINGTON (AP) — President Barack Obama has vetoed legislation to repeal his signature health care law.

It’s one of many repeal measures pushed by Republican lawmakers since 2010, when Obama signed the health care program into law. But it’s the first bill to clear both houses of Congress and make it to Obama’s desk.

The legislation would also cut federal funding for Planned Parenthood.

The Senate passed the bill last year under special rules that protected it from a Democratic filibuster. The House followed suit this week. Both chambers are now under GOP control.

The veto was expected.

But Republicans say they met two goals by passing the bill: keeping a promise to voters in an election year, and showing their ability to repeal the law if a Republican wins the presidency.

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

Join our Newsletter for the latest news right to your inbox