Although he was sick, he went to school.

Literal

Sick was [but-が] he [topic-は] went-to-school.

だったが uses the past copula with the contrastive conjunction が. 登校した means 'attended school.' The contrast is between being sick and still going to school — showing dedication or stubbornness.