Senator-elect Markey rolled up large enough margins in the party’s strongholds to overwhelm Republican Gabriel Gomez.