Credit Suisse Services AG has agreed to shell out more than $510 million under agreements with federal prosecutors in which the company admitted to helping customers hide more than $4 billion from the IRS in hundreds of offshore accounts, the U.S. Department of Justice announced Monday.