In the final weeks of this year’s term, the US Supreme Court was sharply divided on the death penalty, guns and Guantanamo Bay.