WASHINGTON—Settling a constitutional showdown over presidential power, the Supreme Court unanimously ruled Thursday that President Barack Obama exceeded his authority in making temporary appointments to the National Labor Relations Board during a brief Senate break in 2012.

But they split over the extent to which they should limit the president's recess-appointment power. The court's four liberals, joined by conservative Justice Anthony Kennedy, declined to nearly eliminate the capability, as a lower court had done. The majority...