The Supreme Court heard arguments on what limitations should exist for defendants who waive appeals if their sentence would otherwise be illegal.