A judge has dismissed federal claims against two Orange County Superior Court judges accused of misconduct as deputy district attorneys, ruling the jurists are entitled to prosecutorial immunity.