In short, he was the one who was wrong.

Literal

Essentially he [subject-が] was-wrong-[explanatory-のです].

The が-marker emphasizes 'he' as the specific subject identified — 'it was he, specifically, who was wrong.' Distinct from は which would mark him as the neutral topic. This は/が distinction is key.