いたが

was ..., but

→ 居る
phrase Very common #1,646
was ..., but A sentence-ending pattern made from the past form of いる and が, which introduces a contrast.
JA: 彼は知っていたが、何も言わなかった。
EN: He knew, but said nothing.

彼はひどい風邪をひいていたが、働かなければならなかった。

He had a terrible cold, but he had to work.

彼は私が居るのに気がついていたが挨拶しなかった。

He noticed I was there, but he didn't say hello.

一般市民の家は避けていたがこのときの俺は何でもやれた

I avoided ordinary people's homes, but back then, I could do anything.

— エリート・スクワッド (2007)

彼は犬を三匹飼っていたが交通事故で一匹失った。

He had three dogs, but lost one in a traffic accident.

この貨物はアメリカに向かっていたが

This shipment was headed for the United States, but

— तुम्बाड (2018)

私はそんな不器用なヤツが気に入っていたがね

I liked that clumsy guy, you know.

— The Garden of Sinners: Paradox Spiral (2008)

天気予報では午後雨が降るだろうといっていたが、降らなかった。

The weather forecast said it would rain in the afternoon, but it didn't.

彼は風邪を引いていたが、仕事に出かけた。

Although he had a cold, he went to work.

疲れてはいたが私はパーティーに出席した。

Although I was tired, I attended the party.

彼はずっと日記を書いていたがあとは私の口から話そう

He had been keeping a diary all along, but I’ll tell the rest in my own words.

— コーラス (2004)