All desires are ultimately bestowed by the Supreme Lord.
Katha Upanishad 2.2.13:
yo vidadhati kaman
He is the prime eternal among all eternals. He is the supreme living
entity of all living entities, and He alone is maintaining all life
If some one is on the spiritual path and yet desires material things He will fulfill the desires of a devotee in such a way that the devotee gradually loses interest in any more material things. In Srimad Bhagavatam 5.19.27 it is mentioned that:
The Supreme Personality of Godhead fulfills the material desires of a
devotee who approaches Him with such motives, but He does not bestow
benedictions upon the devotee that will cause him to demand more
benedictions again. However, the Lord willingly gives the devotee
shelter at His own lotus feet, even though such a person does not
aspire for it, and that shelter satisfies all his desires. That is the
Supreme Personality’s special mercy.
Commenting on the above verse Srila Prabhupada writes:
“Whether one is freed from all material desires, is full of material
desires, or desires to become one with the Supreme, he should engage
in devotional service.” (Bhagavatam 2.3.20) In this way, not only will the devotee’s
desires be fulfilled, but the day will come when he
will have no other desire than to serve the lotus feet of the Lord.
One who engages in the service of the Lord with some motive is called
a sakama-bhakta, and one who serves the Lord without any motives is
called an akama-bhakta. Krsna is so merciful that He turns a
sakama-bhakta into an akama-bhakta
We see this in the example of Dhruva where he performs austerities for material opulence but he later loses interest in material things. Kardama also performs tapasya to get a wife and Lord Vishnu grants Him the boon to get Devahuti as his wife. The Lord also personally becomes his son as Kapila. Later both Kardama and Devahuti attain perfection.