The Supreme Court ruled 5-4 on Monday in favor of Janus Capital Management in a case that had been closely watched because it involved issues that could affect the exposure of parties like lawyers, accountants, and investment bankers to securities litigation.