A French mother took the government to court for failing to stop her teenage son leaving the country to join jihadists in Syria.