Home Secretary Theresa May has lost her appeal court challenge over a decision to block Abu Qatada's deportation.