Danish intelligence agencies on Wednesday won a case against a Syrian-born Islamic State fighter who claimed to have spied on Copenhagen’s behalf.