YouTube could face royalties bill after losing court case