A court in the Netherlands has rejected a request by activists to ban the holiday character Black Pete from state television but encouraged debate over a tradition that has prompted protests on both sides.