CAIRO - The Arab states said on March 29 that they had agreed to form a joint military force to counter both Iranian influence and Islamist extremism, a gesture many analysts attributed in large part to their drive for more independence from Washington.