Having them pay a fine would have not changed anything, Apple has no money problem and they often do it in purpose, name a device and than pay if it breaks some trademark or whatever.
I think the judge understood this and wanted to teach them a lesson of humility, which Apple didn't get and showed once again that they think they are more clever and over the rules. But the reality is that the judge has the power and is not a stupid, and I bet he doesn't like to be treated like one.