The three men are being tried on charges of conspiracy and membership in Ansar al-Islam , an Islamic militant group that U.S. authorities have linked to al-Qaida .