Qantas is facing legal action for allegedly selling tickets for thousands of flights it had already cancelled.