A federal court in California has ruled in favor of Disney in a long-running copyright case over its hit animated film Moana.