A romantic relationship and a close friendship between Ernst & Young auditors and executives with the companies they audited has cost the firm $9.3 million.

The U.S. Securities and Exchange Commission on Monday settled what it said were the first cases of personal relationships violating the commission’s rules on auditor independence and impartiality.