Manning apologizes at sentencing; gender issues aired