Markey secures the Democratic nomination as Massachusetts voters back several of the state’s long-serving lawmakers.