Over the objections of its three liberal justices, the Supreme Court on Monday denied a petition from a prisoner confined for years without the chance to exercise outside his cell.