Referees under Pressure: The Limited Influence of Courts on Elections