Ett företag i Gävle tvingas betala 7,3 miljoner kronor till ett fastighetsbolag i Stockholm sedan man förlorat en tvist i domstol.