The New Zealand Parliament has passed a bill granting 10 days of paid leave to survivors of domestic violence.