It might take law changes to keep them out of trials, the government's chief legal advisers say.