The men had been held since their arrest in 2018 and found guilty of plotting attacks, officials say.