Justices' opinion divided on case about same-sex marriage and religious beliefs. A constitutional case concerning a wedding cake attracted a large number of activists