The high court ruled on a same-sex marriage cake case and upheld the "separate sovereigns" exception to double jeopardy cases.