Legislation that eluded Mr. Kennedy in his nearly 47 years in office included universal health care and comprehensive immigration reform.