Rising risks from Iran-linked attacks have sharply increased freight, insurance and security costs, even as crude shipments from the Gulf continue.