Shamima Begum set to cost taxpayer up to £7m in legal bills after latest defeat