At least five law firms, including several Wall Street firms, were brought in to defend credit rating agencies that were charged by the SEC for significant recordkeeping failures.