Corbyn wins right to be included on ballot paper