Spy agency meets regularly with energy firms, says its foreign intelligence follows Canadian law