A divided U.S. Supreme Court ruled Friday that juries—not judges—must determine whether a defendant has committed felonies on three separate occasions and thereby qualifies for a longer sentence as an armed career criminal under federal law.