The measure passed late Monday includes $ 31 billion for the troops in Afghanistan , but does not include funding for military operations in Iraq .