A U.S. Army first class sergeant was sentenced to 25 years in federal prison for attempting to aid the Islamic State, including plans to attack his own base.