What I don't understand is if he just didn't give any password, he would have been fine. It's only because he gave him a duress pin that he's in trouble.
So, in both cases the government wouldn't have access to the contents of the phone
In the first case they (the US govmnt) could hold him (the citizen) in contempt (in a cell) indefinitely.
Is that allowed? Can you refuse to give a pin when asked?
They might have a way to gain access anyway. That was that case where the FBI got the locked iPhone 5C of a San Bernardino shooter suspect. Apple refused to unlock it, so the FBI paid a hacking firm to do it. If there's no known vuln to get into a phone today, I wonder if they'd hold onto it in hopes that one shows up later.