A federal judge has ordered the U.S. Department of Agriculture to restore previously revoked grant funding to two Iowa nonprofits — at least for now.