RCMP ‘committed criminal offences’ in terror sting, lawyer tells B.C. court