The sentence was a sharp rebuke to the Trump administration, which had requested he serve only one day behind bars.