NASHVILLE, Tenn. — Muslims in a Tennessee congregation prepared Thursday for the holy month of Ramadan a day after a federal judge ruled they have a right to occupy their newly built mosque, overruling a county judge's order that was keeping them out.
The Islamic Center of Murfreesboro sued Rutherford County on Wednesday and asked U.S. District Judge Todd Campbell for an emergency order to let worshippers into the building before the holy month of Ramadan starts at sundown Thursday.
Federal prosecutors also filed a similar lawsuit.
The future of the mosque had been in question since May, when a local judge overturned the county's approval of the mosque construction. This month, he ordered the county not to issue an occupancy permit for the 12,000-square-foot building.
Campbell ordered the county to move ahead on approving the mosque for use, although it wasn't immediately clear if that could happen by Thursday. Final inspection of the building is required.
In past years, community members have gathered for Eid-al-Fitr -- the breaking of the fast for Ramadan -- in the parking lot of the rented worship space that they outgrew, the Tennessean.com reported.
The contentious fight over the mosque stems from a 2010 lawsuit filed by a group of residents who made repeated claims that Islam was not a real religion and that local Muslims intended to overthrow the U.S. Constitution in favor of Islamic religious law.
Those claims were dismissed, but opponents won with a ruling that overturned the approval to build the mosque on the grounds that county didn't give adequate public notice of the meeting.
Although the county advertised that meeting in the same way it has advertised others, the judge said extra notice was needed because the mosque construction was "an issue of major importance to citizens."
'The Muslim community ... has been under siege'
In court Wednesday, U.S. Attorney Jerry Martin said the chancery court judge, in essence, created a separate "mosque standard" applicable only to someone who wants to build a mosque.
Citing acts of vandalism, arson and a bomb threat against the Islamic Center of Murfreesboro, Martin said, "The Muslim community in Rutherford County has been under siege for the last two years. Now, after doing everything right, they are told that they can't move in."
Martin asked the federal judge to fulfill a promise made by the congregation's religious leader, Imam Ossama Bahloul, to the children of the congregation that justice would be done and they would be allowed to worship in their new space.
The congregation is being represented by The Becket Fund for Religious Liberty and local civil rights attorney George Barrett. The lawsuit filed in federal court in Nashville alleges violations of federal law and the constitutional guarantees of freedom of religion and equal protection.
"If ICM were a Christian church, it would have been granted a certificate of occupancy and would be worshipping in its new facility today," a memorandum to the federal court reads, citing 20 instances of Christian churches that have been allowed to build since 2000. "... The discriminatory treatment of the mosque also sends a powerful message to the Muslim community that they are second-class citizens, not worthy of the same rights or protection as Christian churches."
Attorneys for Rutherford County did not oppose the temporary restraining order. County attorneys have argued in chancery court hearings that treating the mosque differently from other applicants was discriminatory and a violation of their rights.
County Attorney Jim Cope said after the hearing that he felt vindicated by Campbell's ruling.
Mosque leader Bahloul said he had been reluctant to involve the mosque in the lawsuit but felt he had no choice after the certificate of occupancy was refused.
He said Campbell's ruling means a lot to Muslims in Tennessee and their supporters.
"We are here to celebrate the freedom of religion and that the concept of liberty is a fact existing in this nation," he said, reported WBIR.com in Tennessee. "The winner today is not an individual, the winner today is our nation and the fact that our Constitution prevailed."
The Associated Press contributed to this report.
More content from NBCNews.com:
- Is liberal Christianity signing its own death warrant?
- Zimmerman: 'I'm not a racist and I'm not a murderer'
- Lesbian mom on Boy Scouts: We'll keep fighting
- Man writes own obituary, surprising friends, family
- Video: Former cheerleader accused of sexual abuse speaks out