Two soldiers convicted of thwarting an investigation into the explosion on President Abdulla Yameen’s speedboat were freed Wednesday.