In developing the legislation, certainly the Department of Justice was involved and engaged with many other departments and agencies. You're correct in saying that those included Health Canada. Certainly, on such a transformative piece of legislation, the Prime Minister's Office was aware of the contents of the legislation.
On June 9th, 2016. See this statement in context.