Senator-elect Markey, 66, now heads to the Senate to finish the final 17 months of John F. Kerry’s term.