Home Office policy on discretionary leave for children ruled unlawful