The Supreme Court’s conservative and liberal justices clashed Tuesday over campaign finance restrictions in a dispute involving candidates for elected state and local judgeships.

Five years after the court’s Citizens United ruling freed corporations and labor unions to spend as much as they want in elections for Congress and president, the court heard arguments in a case from Florida that tests whether states can prohibit judicial candidates from making personal appeals for campaign donations.