Court setback may result in departure of unpopular UBC minister