A UK court has ruled that Uber must pay £6.5 million to a woman who claimed she was raped by one of its drivers in 2017.