Backed by the Swiss government and the regulators, UBS has agreed to acquire its troubled rival Cred..