It cost them a lot of money both in taxes, contribution, and association.
They didn’t join the NCAA until 2012. They got their nonprofit status back in 2014 I think.
A married gay BYU student is going to sue the university at some point and I think this case will serve precedent. I have no idea what BYU will do.