After some doubt it would happen, senators have voted to pass the Liberal government’s marijuana legalization bill. Mike Le Couteur explains how close the result was.