The fine resolves allegations against the Swiss bank over its alleged role in the 2008 financial crisis.