US financial services company, Western Union, has agreed to pay a federal penalty of $586 million (€545.2 million) after admitting to clearing transactions related to illegal online gambling activities.