The U.S. military says American and Iraqi forces fighting insurgents near the Syrian border have cleared most of the western city of Ubaydi of insurgents , but pockets of resistance remain .