Giving his money to people he wished to support was illegal before he died?
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.