New York lawmakers and elected officials on Wednesday decried a Supreme Court ruling that will allow employers to deny coverage for contraceptive services based on religious objections. 

The ruling comes after New York has approved measures designed to bolster reproductive and contraceptive measures in the state for women, including a measure that is meant to ensure women have access to coverage regardless of where they work or their employers' religious beliefs. 

It's not clear how that measure will be affected by the court's ruling this week.

The case dealt with the "contraceptive mandate" in the Affordable Care Act, also known as Obamacare, that required most employers to provide cost-free coverage to women. President Donald Trump wanted to limit that coverage requirement for employers who have religious objections. 

"The Assembly Majority knows that women’s reproductive health care and family planning decisions should be made by women and their health care providers – not their employers," Assembly Speaker Carl Heastie said in a statement. "Today’s Supreme Court decision delivers an unconscionable blow to women across the nation by allowing employers to deny women coverage for contraceptives because of their personal objections."

Attorney General Letitia James also criticized the outcome in the 7-2 decision.  

“Today’s Supreme Court decision is a loss to women across the nation, and allows President Trump to move forward with his efforts to control women’s reproductive freedoms," she said. "While employers should never have a role in making reproductive health care decisions for their employees, this decision puts bosses in charge of their workers’ bodies, their choices, and their freedoms. I wholeheartedly disagree with today’s decision and will continue to fight for women’s reproductive health care every day.”