German court jails Iraqi militant