B.C. legislature loses bid to thwart union organizing in leg