が、なんとか

but somehow

→ が
phrase Rare #40,893
but somehow が marks a contrast, and なんとか means that something was managed despite difficulty.
JA: 雨が降っていたが、なんとか試合を続けた。
EN: It was raining, but we somehow managed to continue the game.

我々の収入は少ないが、なんとかやっています。

Our income is low, but we’re managing somehow.

私は彼といっしょに仕事をしたくなかったが、なんとか我慢してやった。

I didn't want to work with him, but I somehow managed to put up with it and get the job done.