I don't know. The article says the will was supposed to establish a trust to disburse scholarships. If under Canadian law a scholarship trust is unlawful if it discriminates against homosexuals then trying to do the same thing after death doesn't make it legal.
I assume that if he left the money to certain specific individuals it would have been honored.
This is where we have gotten with this "social justice" crap. It has granted the government the power to regulate morality.
Barry Goldwater opposed the civil rights act of 1964 because he knew this would balloon up into a catch all for any group of people the government wants to punish.
Discrimination is bad, but it is not the government's job to tell other people what morals they should have. If they wish to discriminate, they ought to have the freedom to do so, and then let society dissuade them, not government law.
Of course this is Canada, but I cannot help but think their "social justice" awareness is a consequence of what this nation pioneered, and not in a good way.