Legislation to remove police checks passed by parliament