In a close 5-4 decision, the nation's highest court ruled that the constitution's 14th amendment requires states to allow marriage between same-sex couples.