President Joe Biden on Thursday ordered airstrikes on buildings in Syria that the Pentagon said were used by Iranian-backed militias, in retaliation for rocket attacks on U.S. targets in neighboring Iraq.