Iran attacked commercial ships across the Persian Gulf and targeted Dubai International Airport, escalating a campaign of squeezing the oil-rich region as global energy concerns mounted.