Deutsche Bank AG has agreed to pay $38 million to settle U.S. litigation over allegations it illegally conspired with other banks to fix silver prices.