Washington had been engaged in a decadelong effort to shift its strategic attention from the broader Middle East.