でしたが

was ... but

→ だ
phrase Rare #37,344
was ... but A polite past-tense form followed by が, meaning “but” or “although.” The phrase may also end a sentence when the rest is understood from context.
JA: 昨日は雨でしたが、今日は晴れです。
EN: It was rainy yesterday, but it’s sunny today.

旦那様がお帰りでしたが

My husband had returned, but...

— 紅夢 (1991)

私たちは貧乏でしたが、幸せでした。

We were poor, but we were happy.

遺書なら通報すべきでしたが私の上司だったので…すみません

If it was a suicide note, I should have reported it, but he was my boss... I'm sorry.

— 別れる決心 (2022)