American Airlines' reliance on partners faces test after court ruling