A former California college student was sentenced Wednesday to 30 years in prison for trying to aid the Islamic State group.