I think the moment a 'grant' has concrete deliverables (to a private firm?) it ceases being a grant and starts being some kind of consulting. I think people try to do this around ucla pretty often i.e. (I give a professor money -they do the research- I keep the IP)- it is pretty frowned upon in that context. In ML and CS I think this is probably more kosher-Michael Kearns seems to have a pretty thriving consultancy.