After years of debate and the settlement of a multi-million dollar lawsuit, a town in New Jersey has approved the construction of a mosque.

On Tuesday, The Bernards Township committee approved the construction plan after the Islamic Society of Basking Ridge sued the township. The society claimed that the town changed its zoning ordinances in order to deny the construction of the mosque.

Under the terms of the $3.25 million settlement, the township will pay the settlement, allow the mosque to be built and to limit the zoning restrictions placed on houses of worship. The U.S. Justice Department also sued the township saying that the town treated the society differently than it treated other religious groups and discriminated adjacent the Islamic Society based on religion.

Study: Denominational identity on the decline for Protestants

According to a recent Gallup poll, the number of U.S. adults identifying with a specific Protestant denomination has decreased from 50 percent in 2000 to just 30 percent in 2016.