Inmate pleads guilty to mailing bomb threats to judges, secretary of state 'for the cause of the Islamic State'