Technology stocks experienced a broad decline this week as rising tensions over the Iran conflict introduced uncertainty into financial markets.