US: Supreme Court rules gay marriage is legal nationwide