An Iraqi court sentenced a French man and a German woman to life in prison on Monday after finding them guilty of belonging to Islamic State.