Court grants permission for Liberty legal action against Home Secretary