American Airlines plans to buy a stake in the South American airline JetSMART and launch a codesharing partnership. American said the arrangement with JetSMART, an economy carrier operating primarily in Argentina and Chile, will create “a compelling customer offering in Latin America.”