The United States and France have struck a deal to compensate Holocaust victims deported by the SNCF state rail company.