US professor gets life in prison for attempt to recruit for Taliban