Since it's a custom creation, everything he writes or puts on the cake is a freedom of speech issue.
You're correct that laws are not whims.  We just disagree on what the law covers and does not cover.