The Boy Scouts of America (BSA) ended its ban on gay adult leaders in a 45-12 vote on Monday.

Under the new resolution, which took effect immediately, gay adults are allowed to serve as leaders in the 105-year-old organization, reports The New York Times. However, individual scout units are allowed to set their own policy on whether to allow gay adults to work as leaders. That means that local scout units sponsored by churches can block certain adult leaders based on religious beliefs.

"On Monday, July 27, the National Executive Board ratified a resolution that removes the national restriction on openly gay adult leaders and employees," reads a statement released by the BSA.

"This change allows Scouting's members and parents to select local units, chartered to organizations with similar beliefs, that best meet the needs of their families. This change would also respect the right of religious chartered organizations to continue to choose adult leaders whose beliefs are consistent with their own," said the BSA.

Although the new policy tried to form a compromise between religious sponsors, who supported the gay ban, and LGBT groups and corporate sponsors, who called for an end to gay discrimination, neither side seemed happy with the outcome.

The Human Rights Campaign, a national pro-LGBT rights organization, argued that the Boy Scouts should not allow church-sponsored units to continue to exclude gays.

"Discrimination should have no place in the Boy Scouts, period," said the HRC's president, Chad Griffin, according to CBS News. "BSA officials should now demonstrate true leadership and begin the process of considering a full national policy of inclusion."

Meanwhile, the Mormon Church, which sponsors more Scout units that any other organization, said it was "deeply troubled" by the decision.

"The Church of Jesus Christ of Latter-day Saints is deeply troubled by today's vote," said a statement issued by the Church, according to The New York Times report. "The Church has always welcomed all boys to its scouting units regardless of sexual orientation. However, the admission of openly gay leaders is inconsistent with the doctrines of the Church and what have traditionally been the values of the Boy Scouts of America."

Church officials also threatened to end the partnerships with the BSA in order to form a separate organization for young boys.

"As a global organization with members in 170 countries, the Church has long been evaluating the limitations that fully one-half of its youth face where Scouting is not available," the statement said.

The Mormon Church's stance has raised questions about whether other conservative sponsors, like the Roman Catholic Church, will also end support for the Scouts.