Quantum gates generated by rotationally invariant operators in a decoherence-free subsystem