The U.S. Treasury Department revoked a license allowing Iran to sell its oil worldwide following an attack on a Qatari natural gas shipment.