A federal judge has turned back New Jersey’s attempt to help plug its budget gap by grabbing $79.5 million in unused gift card funds, finding merit in challengers’ arguments that the law is on shaky constitutional ground.