GATEAU: Selecting Influential Sample for Long Context Alignment