Gains in big technology stocks and easing bond yields helped lift Wall Street even as oil prices ticked higher amid an escalation in the US war with Iran.