The US retaliated against Iranian strikes on American forces with a fresh wave of attacks, escalating a conflict that is spreading wider across the Middle East.