American Airlines has agreed to pay $7.5 million to settle a federal class-action lawsuit brought by passengers in several states who claimed they were overcharged in a bait-and-switch on baggage fees.