A Democratic effort to override the Supreme Court's recent ruling on contraceptive coverage failed in the Senate on Wednesday.

Bill sponsors fell four votes short of the 60 votes needed to cut off debate on the measure.

But the purpose of the vote may have been less about trying to move legislation than to put Republicans on record, NPR's Laura Sullivan reports. Democrats are using the issue of contraception policy in heavily contested Senate races in states such as Kentucky and Colorado.

"Every senator must take a stand for individual liberty," said Democratic Sen. Barbara Boxer of California. "Women are watching."

The court's decision last month in the Hobby Lobby case allows some private companies to withhold coverage of contraception if it violates their religious beliefs.

The Democratic bill, which was supported by the Obama administration, would make it clear that any employer providing health insurance would have to pay for any type of coverage specified by federal law. (The Affordable Care Act calls for contraceptive coverage.)

"It shouldn't be up to your boss whether you as an employee get access to health care or not," said Sen. Chris Murphy, a Connecticut Democrat, during floor debate. "We are entering into a new era in which five men on the Supreme Court are going to make decisions about what kind of health care you get as a result of decisions made by your boss."

Republicans dismissed that argument, saying that Democrats were simply trying to score political points.

"Nothing in the Hobby Lobby ruling stops a woman from getting or filling a prescription for any form of contraception," Kelly Ayotte of New Hampshire and Deb Fischer of Nebraska, both Republican senators, wrote in The Wall Street Journal. "No employee is prohibited from purchasing any Food and Drug Administration-approved drug or device, and contraception remains readily available and accessible for all women nationwide."

Along with other Republicans, they cosponsored legislation to counter the Democratic bill. The GOP's measure would "reaffirm that no employer can prohibit an employee from purchasing an FDA-approved drug or medical device, including contraception."

Texas Republican Sen. Ted Cruz described the Democratic bill as part of an ongoing attack on religious liberties, citing the lawsuit filed by the Little Sisters of the Poor against the Obama administration fighting the birth control mandate.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.