A French court has fined cement group Lafarge $1.3 million for paying the Islamic State group and other jihadists to keep its factory running in Syria during the civil war.