Swiss National Bank has agreed to takeover its troubled rival, Credit Suisse, in a $3.2 billion emergency deal brokered by regulators in Switzerland to help prevent further instability in the global banking industry.