The rare and lenient sentence, which will spare President-elect Donald J. Trump jail time, was used to address his unusual status.