LONDON — The long legal battle over Julian Assange may finally be nearing an end. It has been a sprawling, almost surreal drama — involving the United States, Britain, Sweden, Ecuador and Australia — that saw the 52-year-old WikiLeaks founder holed up in cramped rooms and held in prison cells for a quarter of his life.