A push to ban transgender women from participating in women’s sports – an issue pressed hard by President-elect Donald Trump during his campaign last year – failed in its first General Assembly test.