The case you're referring to was a provincial prosecution, and provincial legal aid was responsible. So it was an issue between the Attorney General of Ontario and the legal aid plan of Ontario. It did not involve the federal government.
But I think the broad issue you're referring to is the phenomenon of court-ordered counsel for prosecutions, whether they are federal prosecutions or provincial prosecutions. Some individuals may not meet the provincial criteria for legal aid. Each province has their own criteria for funding level: certain salary limits, income levels, and other criteria as to whether or not a person qualifies for legal aid. Certain individuals may not qualify for legal aid, but due to the complexity and consequences of the case, the judge may be of the opinion that without the benefit of legal counsel the accused person could not have a fair trial with the benefit of full answer and defence. Therefore, the judge essentially looks at the Attorney General and says, “If you want to prosecute this individual, you'd better ensure that this individual has appropriate legal counsel. So Mr. Attorney General or Madam Attorney General, pay for it.”
Where it comes out of the provincial budget, I don't know. Some of it may come out of legal aid; some of it may come directly out of the provincial budget of the Attorney General. It's a purely provincial matter, but that's how the situation arises.