NBC: Brown reaches deal with federal government to restore funding