The New York legislature on Wednesday voted to extend the states eviction moratorium, protecting tenants facing financial hardships because of COVID-19 from being forced out of their homes through the end of the year.

The state Assembly and Senate, both of which are controlled by Democrats, voted to extend moratoria on residential and commercial evictions and foreclosures for individuals facing financial hardships stemming from COVID-19, in addition to the Tenant Safe Harbor Act, until Jan. 15. 2022.

The extension comes after New York Gov. Kathy Hochul (D) called a special legislative session for Wednesday to extend the eviction moratorium after the Supreme Court blocked the federal eviction freeze that was implemented by the Biden administration.

The legislation passed, but received strong opposition from Republicans, according to The New York Times.

Hochul had been considering convening a special session to address the eviction moratorium, and ultimately made an announcement on Tuesday.

Her goal was to get the eviction freeze extended until Jan. 15.

The extension also came after the U.S. Supreme Court temporarily blocked part of New Yorks eviction moratorium, which barred landlords from challenging a tenants self-certified claim of financial hardship.

The legislation passed on Wednesday addressed the courts decision, providing a tool for landlords to challenge a tenants declaration of hardship in court.

If the hardship claim is bolstered, the court would then be mandated to tell parties to file an application for assistance, according to the assembly.

Assembly Speaker Carl Heastie (D) said the extension will give New Yorkers peace of mind.

By extending the eviction and foreclosure moratoriums for those suffering financial hardship, we will give New Yorkers the peace of mind that they can stay in their homes while they go through the process of getting rental assistance either through ERAP or the State Supplemental Rental Assistance Fund, Heastie said in a statement.

The Hill reached out to Hochul for comment.