An Italian appeals court found a joke in a Netflix film had denigrated one of the country's most celebrated artistic treasures.