Construction of the Solution of the Inverse Spectral Problem for a System Depending Rationally on the Spectral Parameter, Borg–Marchenko-Type Theorem and Sine-Gordon Equation