You misunderstand what Chris-san wrote. He said that "to devote oneself single-mindedly" is a verb phrase, so the underlined part should be just 一途に献身する. If you include こと there, it works as a noun phrase like "devoting (oneself) single-mindedly", not a verb phrase. Also, は shouldn't be included in a phrase like that, either.