The United Nations, rights groups and foreign governments have condemned the convictions.