(CNN) After holding religious services around the clock for 2,327 hours, a Dutch church declared victory Wednesday in its bid to prevent a family from being deported.

The Tamrazyans, a family of five originally from Armenia, had requested asylum in Netherlands and been denied. But now, a Dutch government deal struck Tuesday will offer them and other asylum-seeking families more time in the country.

Hayarpi Tamrazyan (C) from Armenia attends a service in the Bethel church as it holds round-the-clock religious services to prevent the family from being deported.

The Bethel church was optimistic about the future of the Tamrazyan family in the Netherlands.

"On January 30, 2019, the continuous church service that has been held since October 26, 2018 in the Bethel neighborhood-and-church house has ended. The political agreement that was concluded on Tuesday offers the Armenian family Tamrazyan a safe future in the Netherlands," the church said in a statement.

Theo Hettema, chairman of the General Council of Protestant Ministers in the Netherlands, said: "We are extremely grateful for a safe future for hundreds of refugee families in the Netherlands. For months we have held up hope, and now that hope is taking shape."

The church says more than 1,000 people took part in the service over the three-month period.

A pilgrimage

Police could not enter the church while the service - which began in October - was taking place.

Axel Wicke from the Bethel church and community center in The Hague told CNN last month that the continuous service became something of a "pilgrimage" for people across the Netherlands.

"We have had to account for so many people who want to visit during Christmas," Wicke said, adding that two of the services were being streamed on Christmas eve and Christmas Day.

The Tamrazyans have lived in the Netherlands for almost nine years, but their claim for political asylum was previously rejected. Until now, the Dutch Minister for Migration, Mark Harbers, had refused to use his discretionary powers to intervene and allow them to stay. His office declined to specifically discuss the case when contacted by CNN previously.

Speaking to Reuters in December, 21-year-old Hayarpi, the oldest daughter in the family of five, said: "I really don't know what the outcome will be, but we hope we can stay here (in the Netherlands), because this is our home, this is where we belong.