[SPARK-57424][SQL] Add First/Last to segment-tree window aggregate allowlist