Liberty to take Legal Aid Agency to court