The head of parliament's Intelligence and Security Committee Andrew Hastie has urged the government to pass legislation to temporarily ban foreign fighters from entering the country.