Gaia Data Release 3. Cross-match of Gaia sources with variable objects from the literature