ことはできた

was able to

→ こと
phrase Rare #30,966
was able to Follows a verb in its dictionary form. は can add contrast, suggesting that the action was possible even if something else was not.
JA: 予約することはできた。
EN: I was able to make a reservation.

通りを見つけることはできたが、彼女の家は見つけられなかった。

I was able to find the street, but I couldn't find her house.

断ることはできた命令には逆らえない

I could have refused, but I can't disobey orders.

— ア・フュー・グッドメン (1992)

トムと連絡を取ることはできたの?

Were you able to get in touch with Tom?

トムを助けることはできたの?

Were you able to help Tom?

しかし法則を知ることはできた

However, it was possible to learn the law.

— 惑星ソラリス (1972)