Facts

The appellant [X.] is the subject of tax proceedings in the canton of Fribourg. He filed an application for legal aid with the Tax Court of the Cantonal Court of the State of Fribourg (hereinafter: the Cantonal Court), concerning proceedings 604 2016 13 and 604 2016 16.

By decisions 604 2016 24 and 604 2016 25 of 15 March 2016, the clerk-rapporteur of the Tax Court dismissed the application for legal aid insofar as it concerned these proceedings. By judgments 604 2016 42 and 604 2016 43 of 6 June 2016, the Cantonal Court dismissed the appeal lodged against these decisions.

By judgments 2C_741/2016 and 2C_742/2016 of 26 January 2017, the Federal Supreme Court partially upheld the appeal against the judgments of 6 June 2016. Part III of the operative part of judgment 604 2016 42 and part IV of the operative part of judgment 604 2016 43 were annulled, the judgments being confirmed for the remainder. The matter was remitted to the Cantonal Court so that it would rule anew on the appeal directed against the decision refusing legal aid of 15 March 2016.

By judgments 604 2017 20 and 604 2017 21 of 9 March 2017, the Cantonal Court, sitting in a new composition, dismissed the appeal against the decisions of 15 March 2016.

The appellant lodged two separate appeals (2C_422/2017 and 2C_423/2017) with the Federal Supreme Court. He alleges a violation of cantonal procedural law, in particular on the ground that an interlocutory decision must be genuinely interlocutory, as well as a violation of his right to be heard. The cases were joined, and no second exchange of written submissions took place.

Considerations

When an authority gives reasons for remanding a case, its legal considerations bind the lower authority and the parties: the parties may no longer raise, against the new first-instance decision, objections that were rejected in the remand judgment. Such objections are inadmissible by reason of res judicata (ATF 133 III 201 consid. 4; 120 V 233 consid. 1a; 117 V 237 consid. 2a; 113 V 159 consid. 1c). By contrast, the new decision may be challenged on the ground that it does not comply with the considerations of the remand judgment.

In the present case, the complaints set out under 'en droit ch. 1 à 5 et 7' of the briefs cannot be examined, because the points they target have become res judicata or fall outside the subject matter of the dispute. The prior authority therefore correctly confined itself to following the instruction of the Federal Supreme Court, namely to rule anew on the appeal directed against the decisions refusing legal…