Flights for illegal immigrants cost taxpayers $340 million