A Spectroscopic Model of the Type Ia Supernova–Host-galaxy Mass Correlation from SALT3