I believe the answer is: The opinion would be written by one of the justices who voted with the majority.
The opinion would include includes a summary of the facts, a recitation of the applicable law and how it relates to the facts, and would not affected the decision made by the supreme court in any way. But it would be filled with perspective regarding the train of thought that the voters have leading up to the final decision.