Man who lied in Somali terrorism case gets 2 years