Labor wins historic refugee transfer vote