The justices ruled against a man who was sentenced to 21 months in prison after pleading guilty to selling unregistered securities as part of a scheme involving high-risk penny stocks.