Standard Chartered carried out billions of dollars of transactions for terrorist funders, US court papers claim.