France will keep its troops in northern Syria for now because Islamic State militants have not been wiped out and continue to pose a threat to French interests, officials said.