The US attack reverses a vow US President Donald Trump made when campaigning for his second term that Washington would stop, not start, wars.