Which event led directly to the legalization of same-sex marriage throughout the United States?

A
the U.S. Supreme Court ruling in Baker v. Nelson

B
the U.S. Supreme Court ruling in Obergefell v. Hodges

C
the Stonewall Inn protests in New York City

D
the Defense of Marriage Act hearings in Congress