These strikes could be read as a message for China and North Korea that we're better as allies than enemies.
Also, this wasn't a unilateral move. Israel and France also joined in. I think this might also have been an attempt to regain some favor with Europe.