The U.S. Treasury Department sanctioned the law firm Karnakis and Karnakis, based in Panama and Greece, over ties to Iran’s shipping activities.