Minnesota’s revenue commissioner was right to treat income derived from the goodwill generated by the sale of company stock as apportionable business income, the state Supreme Court ruled Wednesday, despite conduct by the commissioner that the justices found troubling.