A Texas court found that American Airlines' plan erred by including environmental, social and governance factors.