How did the SCOTUS come to its decisions to strike down DOMA and Prop 8?

Dems President Sejal Singh boils it down for us in the first of our Summer Liberal Boot Camps