A U.S. District Court judge says the University of Iowa was wrong to take away the registered status of a Christian student group.

The school pulled the status of the group Business Leaders In Christ or BLINC after the organization barred a gay student from a leadership position. Judge Stephanie Rose had granted a temporary injunction restoring the groups status, and now has issued a permanent injunction banning the university from rejecting the status of the group.

She ruled the university unevenly applies its human rights policy by allowing other groups to limit membership based on religious views, race, sex and other protected characteristics. Being a registered student group allows them to access to mandatory funds the students themselves contribute to the school.

A university spokesperson says it plans to follow the court’s decision.