After a U.S. investment of about $1 billion in Niger, the welcome mat is being yanked out from under American troops’ feet.