The U.K. Justice Secretary has said he plans to use legislation to counteract last year's Supreme Court ruling against litigation funding agreements.