magistrate
A public official with judicial, executive, or legislative power granted by the government, often functioning as a judge over minor matters or a justice of the peace.