Lyndon B. Johnson was often derided for being egocentric, but when it came time to sign his landmark bill creating Medicare, 50 years ago this July, he graciously insisted on sharing the credit with the 81-year-old Harry Truman. At almost the last moment, Johnson decided to change the location from Washington to Truman’s presidential library in Independence, Mo.

During the ceremony, Johnson noted that in 1945, the newly installed President Truman had called for national health insurance, planting “the seeds of compassion and duty which have today flowered into care for the sick, and serenity for the fearful.” Johnson then presented his host with the nation’s first Medicare card. Deeply moved, Truman later wrote in a letter to Johnson that the ceremony was “the highlight of my post-White House days.”

On Wednesday, the Supreme Court will hear arguments in King v. Burwell, a case that, if resolved against the Obama administration, could endanger some of the fundamentals of President Obama’s health care program.

Just as Mr. Obama’s Affordable Care Act was based on elements of Johnson’s Medicare, some of the most important domestic achievements by presidents throughout history have been based on the pathbreaking efforts of a predecessor. Acknowledging his debts to Truman in health care, education and civil rights, Johnson privately told him that his presidential record was unequaled, adding, “It makes all of us look like pygmies.”