Judgment vs. Opinion

The judgment of a court is the decision of the court on the particular matter or case.

The opinion of the court is the statement of the court setting out their reasoning and the principles of law applied to the particular case.

For example:
The judgment of the court was based on a long and well-reasoned opinion.