The Swiss bank agreed on Tuesday to pay €835 million for illegally helping wealthy French clients open undeclared accounts in Switzerland.