Profits grew while students were hurt by a law intended to protect them