A federal judge just sided with Michael Cohen on the biggest issue in his case — and added in another wild card