The administration has obtained funding for the Iraq and Afghanistan operations through emergency spending bills .