Senate Republicans blocked legislation Wednesday that would enshrine a federal right to access contraception, sinking the Democratic-led measure.

The vote on the Right to Contraception Act was 51-39, falling short of the 60 votes needed to defeat a filibuster and move the bill forward. Republicans said it was unnecessary because the use of birth control is already protected under Supreme Court precedent.

Republican Sens. Lisa Murkowski of Alaska and Susan Collins of Maine voted with Democrats in support of the bill. Senate Majority Leader Chuck Schumer, D-N.Y., switched his vote to “no” for procedural reasons so he could bring up the bill again at a later date.

Democrats expected the GOP to scuttle the measure and brought it up as an election-year “messaging” push to highlight the contrast between the two parties on reproductive rights, viewing it as a winning issue with independents and swing voters this fall.