Judges rule that ride-hailing app should be treated as a transport firm