Judicial Legitimacy as a Repeated Game