Where a ship is detained in consequence of any complaint and the circumstances are such that the Federal Government is liable under this Chapter to pay to the owner of the ship any cost or compensation, the complaint shall be liable to pay to Federal Government all such costs and compensation as the Federal Government incurs, or is liable to pay,...