The Supreme Court ruling on tariffs is good news for companies like Tesla Inc., which have seen production costs soar since last spring. It is probably good for China as well.