wanted to prove the law was unjust before it even affected him
This is a "crime" without a victim. No one was hiring him for this task. If we had a sane court the whole thing would have been rejected due to lack of standing instead we have a higher court system that only recognizes offended observer for the religious right.
No one actually wanted to do business with the photographer here, he sued the state so that he wouldn't be subject to the law. Now, he can post that he doesn't do business with gay people on his website. However because it was settled out of court it only applies to him and him alone.