Court rules Home Office must reconsider case