While foreign competitors, French or Japanese or German, merrily bid for contracts abroad, American companies find themselves tangled in a web of legislation designed to express disapproval, block trade in certain commodities, or perhaps deny resources to disfavored or hostile regimes.