A key judgment on tax schemes that may have already cost the taxman a billion pounds is expected in the next few days