Uber under threat after court ruling