Breaking the Modality Barrier: Generative Modeling for Accurate Molecule Retrieval from Mass Spectra