He did mention that they were fighting the law before they were fined and they plan to challenge the fine in court.
He has also been vocal about other similar legislation before they were enacted or the company got fined (not sure about this specific one though).
So I don't think it's fair to characterize it as he "only complains about it when his company is fined".