The UK government is preparing for a historic mass repatriation of citizens stranded in the Middle East amid escalating tensions.