So I read about this ruling. Interestingly, the judge ruled that the prosecution can use the evidence they found, because they acted in good faith according to legal precedent at the time. So the guy won't walk free, it's just that going forward they can't force you to unlock your phone without a warrant.
It looks like the judge did this because he didn't want the guy to go free. I think I'm glad he won't but that it is very unusual for a judge to do something like that. I don't know how legally sound such a decision is.