France did not break the law by stripping terrorists of nationalities, top court rules