People pointing out that maths is full of advancements that had no immediately identifiable use at the time, but that came to be useful later, is correct. Yet it doesn't even begin to answer the OP's question.
I doubt very much that many people choose to pour their lives into endeavours that they don't particularly enjoy just because some hypothetical person at some hypothetical future point in time might hypothetically find a hypothetical use (hypothetically ;P).
The answer is that "value" presupposes the question "valuable to who and why?"
Newton invented Calculus because he had an immediate use for it. Other mathematicians pour themselves into solving problems because they enjoy it and find a lot of reward in the prospect of solving a previous unsolved problem. Both are "valuable", just to different people for different reasons.
The pragmatic, practical perspective here is that funding the egg heads has had incredible outcomes (and its so cheap too), so dont let the simpletons shake the golden goose down just because they don't understand anything they cant fuck, fight, or eat.
That's the problem with math from a "so what is this good for?" perspective: we don't know yet, but we sure have a litany of instances where seemingly useless proofs had a profound impact anywhere from weeks to centuries later.