Educational research at universities often leads to patents. Universities like Standford own patents or have helped research performed at a University lead to patents. Government funding for research in the U.S at least has never been hostile to commercialization.