Question: Which president appointed the Justice who retired and left a vacancy that was filled by Judge Sonia Sotomayor?

Context paragraphs:
Sotomayor Houses: The Justice Sonia Sotomayor Houses and Community Center is a housing project in Soundview, The Bronx, New York City.  Formerly known as the Bronxdale Houses, the project was renamed in honor of Supreme Court Justice Sonia Sotomayor in June 2010.  The complex was originally opened in January 1955.  The 28-building complex includes close to 1,500 apartments that house about 3,500 residents.

Barack Obama Supreme Court candidates: President Barack Obama made two successful appointments to the Supreme Court of the United States.  The first was Judge Sonia Sotomayor to fill the vacancy created by the retirement of Justice David H. Souter.  Sotomayor was confirmed by the United States Senate on August 6, 2009, by a vote of 68–31.  The second appointment was that of Solicitor General Elena Kagan to replace the retired John Paul Stevens.  Kagan was confirmed by the United States Senate on August 5, 2010, by a vote of 63–37.

David Souter: David Hackett Souter ( ; born September 17, 1939) is a retired Associate Justice of the Supreme Court of the United States.  He served from October 1990 until his retirement in June 2009.  Appointed by President George H. W. Bush to fill the seat vacated by William J. Brennan, Jr., Souter sat on both the Rehnquist and Roberts courts and came to vote reliably with the court's liberal members.

Life Technologies Corp. v. Promega Corp.: Life Technologies Corp. v. Promega Corp., 580 U.S. ___ (2017), was a case in which the United States Supreme Court clarified the application of the Patent Act of 1952 to the sale of components of patented inventions in foreign markets.  In an opinion written by Associate Justice Sonia Sotomayor, the Court held that the sale of a "single component" in a foreign market "does not constitute a substantial portion of the components that can give rise to liability under [the Patent Act of 1952]."  Justice Samuel Alito wrote an opinion concurring in part and concurring in the judgment, in which he was joined Justice Clarence Thomas.  Chief Justice John Roberts took no part in the decision of the case.

Sonia Sotomayor Learning Academies: Sonia M. Sotomayor Learning Academies is a complex of high schools and one middle school choice in Los Angeles, California.  It is a part of the Los Angeles Unified School District.  Sotomayor is made up of five individual schools.  The complex includes the Los Angeles River School (LARS), the School of History and Dramatic Arts (SoHDA), The studio school (middle school or junior high), Early College Academy of Leaders and Scholars (eCALS), and Tennenbaum Tech school (ATAMS).  It is named after Sonia Sotomayor.

Lewis v. Clarke: Lewis v. Clarke, 581 U.S. ___ (2017), is a case in which the Supreme Court of the United States ruled 8-0 that tribal sovereign immunity does not apply in a suit against a tribal employee in his individual capacity, and an immunity provision cannot extend tribal sovereign immunity to cases in which it would otherwise not apply.  Justice Sonia Sotomayor delivered the majority opinion.  Justice Clarence Thomas and Justice Ruth Bader Ginsburg each wrote concurring opinions that both said that tribal sovereign immunity does not apply in suits arising from commercial activity off of tribal territory.  Justice Neil Gorsuch was not involved in the discussion or decision of this case.

Andranik Margaryan: Andranik Nahapeti Margaryan (Armenian: Անդրանիկ Նահապետի Մարգարյան , alternative spelling: Andranik Margarian) (12 June 1952 – 25 March 2007) served as the Prime Minister of Armenia from 12 May 2000, when the President appointed him, until his death on 25 March 2007.  He was a member of the Republican Party of Armenia.  He succeeded the Sargsyan brothers: Vazgen Sargsyan, who was murdered during the Armenian parliament shooting on 27 October 1999 and Aram Sargsyan, whom the President appointed a week later, but fired on 2 May 2000.

Ruth Bader Ginsburg: Ruth Bader Ginsburg (born Joan Ruth Bader; March 15, 1933) is an Associate Justice of the Supreme Court of the United States.  Ginsburg was appointed by President Bill Clinton and took the oath of office on August 10, 1993.  She is the second female justice to be confirmed to the Court (after Sandra Day O'Connor), and one of four female justices to be confirmed (with Sonia Sotomayor and Elena Kagan, who are still serving).  Following Justice O'Connor's retirement, and prior to Justice Sotomayor joining the Court, Ginsburg was the only female justice on the Supreme Court.  During that time, Ginsburg became more forceful with her dissents, noted by legal observers and in popular culture.  She is generally viewed as belonging to the liberal wing of the Court.  Notable majority opinions Ginsburg has authored include "United States v. Virginia, Olmstead v. L.C.," and "Friends of the Earth Inc. v. Laidlaw Environmental Services, Inc."

Raymond Lohier: Raymond Joseph Lohier Jr. (born December 1, 1965) is a United States Circuit Judge of the United States Court of Appeals for the Second Circuit and formerly an Assistant United States Attorney for the Southern District of New York.  He was the chief of the securities and commodities fraud task force in the criminal division of the U.S. Attorney's office.  He was recommended by Sen. Charles Schumer for the nomination to the seat on the United States Court of Appeals for the Second Circuit that was vacated by Sonia Sotomayor when she was elevated to the Supreme Court of the United States.  Lohier is the first Haitian American to serve as an Article III Federal Judge and to be confirmed (unanimously) by the United States Senate as a Judge for the Second Circuit in New York.

Sonia Sotomayor Supreme Court nomination: On May 26, 2009, President Barack Obama announced his selection of Judge Sonia Sotomayor for Associate Justice of the Supreme Court of the United States, to replace retiring Justice David Souter.  Sotomayor's nomination was submitted to the United States Senate on June 1, 2009, when the 111th Congress reconvened after its Memorial Day recess.  Sotomayor was confirmed by the U.S. Senate on August 6, 2009 by a 68–31 vote and was commissioned by President Obama the same day.  She was sworn in by Chief Justice John Roberts on August 8, 2009.

Supporting paragraphs: Barack Obama Supreme Court candidates David Souter
Answer: George H. W. Bush