A federal judge rebuked the administration for the way it tried to fund only partial benefits to food stamp recipients.