So 'getting to the Hubble' is pretty low in price, all things considered. Now the hard part: building something that can fix the Hubble. Humans would be good at making repairs, but the SpaceX Dragon capsule doesn't have an airlock, so that won't work easily. Repairs might be doable by a robot, but I suspect the easier option would be to simply attach new parts to it to perform the broken functionality.
If you can build the new piece for $40m, that's $100m to add another 20+ years to the lifespan of this incredible piece of equipment. Heck, sounds like something Bezos might do just for fun and as a test for his New Glenn rockets.