Algebraic structure of the two-qubit quantum Rabi model and its solvability using Bogoliubov operators