Shares of Deliveroo rose as much as 9% as a court ruled its riders are self-employed.