French judge: ATMs help finance militants