The court can allow by ruling that you have to pay your attorney fees through funds you have.
What error of law or fact led to the ruling, do you claim? That kind of analysis is needed to konw if you may appeal within 30 days IF the ruling was indeed a final order.
What was unethical by the judge? The judge rules on matters that are presented.