Canada lawmakers vote to legalize cannabis