WASHINGTON, D.C.—It has been dubbed the most two-faced nation in the world, backing the U.S.-led coalition against the militants of the Islamic State while providing a permissive environment, in the words of one top American official, for terrorist financiers to operate with impunity.