The Supreme Court on Monday threw out a ruling in which a federal appeals court, without being asked to do so, added 15 years to a convicted man’s prison sentence.

The Court ruled 7-2 in favor of Michael Greenlaw of Minneapolis, who was convicted of participating in a drug-selling operation.