For US tax residents, capital gain from the house sale is subject to US taxation, regardless of whether the sales proceeds are repatriated to the US. H-1b visa holders are typically treated as US tax residents.