Around the world, airlines are shrinking or phasing out first-class cabins entirely. Instead, they are investing heavily in pleasing a larger group of well-heeled travelers than the rare few who would shell out more than $25,000 for over-the-top luxury.