American Airlines pilots ratify labor deal