Thousands of passengers were stranded after a UK air space technical issue led to flight delays and cancellations.