The U.S. Securities and Exchange Commission has counseled or disciplined 24 employees who accessed pornographic sites on government computers between 2005 and 2010 as the financial system teetered and almost collapsed.